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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to