DEVELOP > c-Plus-Plus > How to compile and run program at the same time with BCC32 in SciTE?
| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Billy" |
| Date: |
03 Feb 2008 03:02:53 PM |
| Object: |
How to compile and run program at the same time with BCC32 in SciTE? |
Hi!
I'm using:
-Compiler: Borland Command Line C++ Compiler 5.5.1
-Code Editor: SciTE 1.75
Anybody know how we can in Scite with command Tools|Go (F5) compile
and run my c or cpp program at the same time? So I won't first compile
and then run, but all in one step.
I don't know how to set parameters in "cpp.properties" file. I know
that I have to set line "command.go.needs.*.c", but It doesn't work.
Please for help.
Is this possible from regular command line (cmd)?
Regards,
Billy
.
|
|
| User: "Jeff Schwab" |
|
| Title: Re: How to compile and run program at the same time with BCC32 inSciTE? |
03 Feb 2008 03:32:08 PM |
|
|
Billy wrote:
Hi!
I'm using:
-Compiler: Borland Command Line C++ Compiler 5.5.1
-Code Editor: SciTE 1.75
Anybody know how we can in Scite with command Tools|Go (F5) compile
and run my c or cpp program at the same time? So I won't first compile
and then run, but all in one step.
I don't know how to set parameters in "cpp.properties" file. I know
that I have to set line "command.go.needs.*.c", but It doesn't work.
Please for help.
Is this possible from regular command line (cmd)?
I don't know SciTE at all, but doing this all in one step should be easy
enough from the command line. I don't remember the DOS syntax, but on
Unix/Linux/Mac you can use the && operator to run the program iff the
build is successful:
bcc32 -o main main.cc && ./main
You can replace the direct call of bcc32 with make, or tmake, or nmake,
or whichever build tool you prefer; Borland includes its own make.exe.
You can generally recall the previous command by pressing the up arrow
on your keyboard, and re-run it by hitting Enter.
Better yet, you can define a make target that includes the ordinary
build, then runs the resulting executable. For example, your makefile
may look like this:
run: main
./main
main:
I have a copy of 5.1 lying around here somewhere, but it's not
installed, so I can't check the Borland make syntax right now.
:(
.
|
|
|
| User: "John Brawley" |
|
| Title: Re: How to compile and run program at the same time with BCC32 in SciTE? |
04 Feb 2008 01:07:14 PM |
|
|
"Jeff Schwab"
Billy wrote:
Hi!
I'm using:
-Compiler: Borland Command Line C++ Compiler 5.5.1
-Code Editor: SciTE 1.75
Anybody know how we can in Scite with command Tools|Go (F5) compile
and run my c or cpp program at the same time? So I won't first compile
and then run, but all in one step.
I don't know how to set parameters in "cpp.properties" file. I know
that I have to set line "command.go.needs.*.c", but It doesn't work.
Please for help.
Is this possible from regular command line (cmd)?
I don't know SciTE at all, but doing this all in one step should be easy
enough from the command line. I don't remember the DOS syntax, but on
Unix/Linux/Mac you can use the && operator to run the program iff the
build is successful:
bcc32 -o main main.cc && ./main
You can replace the direct call of bcc32 with make, or tmake, or nmake,
or whichever build tool you prefer; Borland includes its own make.exe.
You can generally recall the previous command by pressing the up arrow
on your keyboard, and re-run it by hitting Enter.
Better yet, you can define a make target that includes the ordinary
build, then runs the resulting executable. For example, your makefile
may look like this:
run: main
./main
main:
I have a copy of 5.1 lying around here somewhere, but it's not
installed, so I can't check the Borland make syntax right now.
:(
I'm willing to bet the OP doesn't want to leave ScITE.
I would not want to. I love it.
I use exactly the same setup he does, but I usually compile, then run in a
DOS box (me: console program only).
It's true that you can run the compiled program from within SciTE (outputs
show in the compiler/linker-messages window), but it doesn't always work as
you expect.
Just seems to me having to compile then run is a minor inconvenience?
--
Peace
JB
jb@tetrahedraverse.com
Web: http://tetrahedraverse.com
.
|
|
|
| User: "Jeff Schwab" |
|
| Title: Re: How to compile and run program at the same time with BCC32 inSciTE? |
04 Feb 2008 09:42:33 PM |
|
|
John Brawley wrote:
"Jeff Schwab"
Billy wrote:
Hi!
I'm using:
-Compiler: Borland Command Line C++ Compiler 5.5.1
-Code Editor: SciTE 1.75
Anybody know how we can in Scite with command Tools|Go (F5) compile
and run my c or cpp program at the same time? So I won't first compile
and then run, but all in one step.
I don't know how to set parameters in "cpp.properties" file. I know
that I have to set line "command.go.needs.*.c", but It doesn't work.
Please for help.
Is this possible from regular command line (cmd)?
I don't know SciTE at all, but doing this all in one step should be easy
enough from the command line. I don't remember the DOS syntax, but on
Unix/Linux/Mac you can use the && operator to run the program iff the
build is successful:
bcc32 -o main main.cc && ./main
You can replace the direct call of bcc32 with make, or tmake, or nmake,
or whichever build tool you prefer; Borland includes its own make.exe.
You can generally recall the previous command by pressing the up arrow
on your keyboard, and re-run it by hitting Enter.
Better yet, you can define a make target that includes the ordinary
build, then runs the resulting executable. For example, your makefile
may look like this:
run: main
./main
main:
I have a copy of 5.1 lying around here somewhere, but it's not
installed, so I can't check the Borland make syntax right now.
:(
I'm willing to bet the OP doesn't want to leave ScITE.
He specifically asked: "Is this possible from regular command line (cmd)?"
.
|
|
|
|
|
|

|
Related Articles |
|
|