Thanks again for your patience. I'm using  g++ -o on the command line to 
produce an executable which I then run from the command line. The code can be 
written in anything of course - I just ensure it ends on cpp. There's no 
problem editing and running C++ code this way.

Your wrapper idea below seems ideal, I will try it.



Sent from my mobile

On 19 Aug 2011, at 12:45 PM, Maarten Sneep <maarten.sn...@xs4all.nl> wrote:

> On Fri, 19 Aug 2011 00:36:21 -0700 (PDT), peter wrote:
>> should be very simple this [ it is in textmate ]:
>> 
>> I just want to run some *simple* C++ code from within BBEdit. What on
>> earth is a shebang error ? Can someone give me straightforward guide
>> how to do this ?
> 
> To be a bit less blunt than my previous response: What do you expect to 
> happen?
> 
> Do you have C++ source code in the editor, and do you want to run the program 
> that would be a result of this? Or do you have a C++ based compiled tool, and 
> do you want to process the front document with said tool?
> 
> The fact that to C++ code is simple doesn't matter. #! supports scripts: text 
> files that start with #! and follow on with an interpreter for the rest of 
> the script. This tells BBEdit which tool to use to run the script. Compiled 
> programs work differently, and cannot be placed in #!.
> 
> Create a wrapper script around the tool, and run it from there, just like any 
> other tool. That assumes the second use case.
> 
> Maarten
> -- 
> Something like:
> 
> #!/bin/bash
> 
> TOOL=/path/to/my/cplusplus/tool
> 
> $TOOL < /dev/stdin > /dev/stdout
> 
> -- 
> You received this message because you are subscribed to the "BBEdit Talk" 
> discussion group on Google Groups.
> To post to this group, send email to bbedit@googlegroups.com
> To unsubscribe from this group, send email to
> bbedit+unsubscr...@googlegroups.com
> For more options, visit this group at
> <http://groups.google.com/group/bbedit?hl=en>
> If you have a feature request or would like to report a problem, please email 
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to