Ive downloaded and installed and created the needed cfg files and added the needed paths.
In order for it to compile, do I need to save my file in the bin, or what.
HELP! :confused:
Printable View
Ive downloaded and installed and created the needed cfg files and added the needed paths.
In order for it to compile, do I need to save my file in the bin, or what.
HELP! :confused:
No you don't. Just add the path to your bin directory in your system PATH or type the entire path when you compile, e.g., c:\>c:\borland\bcc32\bin\bcc32.exe your_source.cpp
thats a bit blurry to me.
Example.
I have test.cpp saved in c:/c++/test
c:/c++/test/test.cpp
So i would type in the following?
c:\borland\bcc32\bin\bcc32.exe c:/c++/test/test.cpp
right. here are some other tips:
1) add c:\borland\bcc32\bin to the path variable in your autoxec.bat file (you'll need to reboot before it takes effect).
2) when compiling a file, change the directory to the one the file is in. open the command prompt and type:
cd c:\c++\test
now you simply type:
bcc32 test.cpp
you can also create a batch file like this in your c:\borland\bcc32\bin directory:
@echo off
if exist %1.tds del %1.tds
if exist %1.obj del %1.obj
if exist %1.exe del %1.exe
bcc32 %1.cpp
%1.exe
@echo on
assuming you named it bc.bat you would simply type:
bc test
...it will compile and run the program all in one shot.