473,216 Members | 1,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,216 software developers and data experts.

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
Feb 3 '08 #1
4 4014
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.
:(
Feb 3 '08 #2

"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

Feb 4 '08 #3
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)?"
Feb 5 '08 #4
Thanks for answers guys.

I'm using SciTE on Windows only, and don't know how that work on
Linux. I have set SciTE that I can compile (Ctrl+F7) and Run (F5) from
there, separately. But for that I have to complete two operations and
I want integrate all in one command. I asked if I can do that somehow
over that setting line: "command.go.needs.*.c".
I meant if is possible to compile & run program with bcc32 somehow
from command line. If that will work then I could use that as "script"
for command in SciTE.

So now I created a batch file "bcc.bat" which contain just two lines:
bcc32 %1
%2

and I "glue" that to: command.build.*.c=x:\path\bcc.bat $(FileNameExt)
$(FileName)

That way I can now:
* Separately Compile (Ctrl+F7) and after that Run (F5) the program.
or
* Compile & Run at the same time (F7).

That way I actually create something similar like other IDE's have
like: MinGW Developer Studio:
* Compile (Ctrl+F7) + Execute (Ctrl+F5)
or
* Compile & Run at the same time (F8)

Anybody maybe know how to prepare/setup previous mentioned Borland
compiler with MinGW Developer Studio?

And why I am asking all that? I'm studying C & C++ and I looking for
some good free IDE that I can use with all compilers. Some books use
Borland "bcc32", some "gcc", some "cl" from MS. So I would like to use
some kind editor/IDE which work with any compiler and include
autocomplete, text sensitive help, debugging features, with simple
user interface, and so on and possibility to Compile and Run
separately or both with one command.

I find until now:
* MinGW Developer Studio
* SciTE
* Programmer's Notepad
* PSPad
* Bloodshed DEV C++

And each of that have something what other don't have. What is the
best? What to choose and then stick with it?

Regards,
Billy
Feb 10 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nuff Said | last post by:
Question: Is there a way to unfold a Python class *without* unfolding all its methods etc. so that you can get a quick overview of the class? Details: I normally open a file either with...
3
by: Brent W. Hughes | last post by:
I want to increase the number of files I can have open in the SciTE editor. The SciTEDoc.html document says to change the number of buffers in a file called SciTE.properties, but it doesn't say...
32
by: Sticks | last post by:
i'm new to python and i was wondering what editors people prefer to use and why.
3
by: Thomas Matthews | last post by:
Is there anything technically wrong with the code below? I compiled it with g++ 3.3.1 and it executes with no errors. I compiled it with bcc32 5.6 and it executes with "This program has performed...
17
by: newbiecpp | last post by:
I have hard time to understand run-time environment. Let assume that I have a program that has a simple variable alpha. When this variable is statically allocated, the compiler can use the...
10
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data...
1
by: Sandy | last post by:
Dear Pythonic People, I recently discovered SciTE (1.68) as a programming editor, and I find it just beautiful. Small, fast, elegant and beautiful. I particularly like syntax highlighting...
3
by: bg_ie | last post by:
Hi all, To start with, I had 3 c files which I linked using bcc32 - bcc32 1.c 2.c 3.c Now I need to convert 1.c to 1.cpp. 1.cpp contains the main function. The problem is that I now get ...
41
by: c | last post by:
Hi every one, Me and my Cousin were talking about C and C#, I love C and he loves C#..and were talking C is ...blah blah...C# is Blah Blah ...etc and then we decided to write a program that...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.