473,385 Members | 1,641 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,385 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 4030
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.