Click to See Complete Forum and Search --> : Does any one know how to compile with borland c++ ?


no0ne
December 4th, 2002, 10:58 PM
does anyone know how to
I am familiar with g++ the unix/linux gnu compiler, But I am on a windows box right now and only have a command line borland compiler c++. I have an object file and a source file and need to create an executable. In order to this g++ I believe I would first run a preprocess on the .cpp file which would create 'standard code' I think the term is, then I would run a compiler on the 'standard code' this would create assembly code, next I could run an assembler on the assembly code this would create object code. So then finally I could run a linker on the new object code as well as the original object. This would create an executable.

Using borland I found

CPP32.EXE is the preprocessor
and
ILINK32.EXE is the linker

but I don't see a compiler or assembler...
How does Borland go about going from 'standard code' from the preprocessor to object code????

Any help would be greatly appreciated

PaulWendt
December 5th, 2002, 06:16 AM
You need to read Borland's documentation. Usually, you just
invoke the compiler on the source file and an object file is created.
A lot of times, you have to specify a specific option so that you
can name the output. Every compiler is different and I'm sure
Borland documents what their compiler's behavior is.

--Paul

vinodp
December 5th, 2002, 07:18 PM
On my machine its bcc32.exe.
I think my version is 5.X
Vinod

Paul McKenzie
December 5th, 2002, 10:43 PM
Originally posted by no0ne
does anyone know how to
I am familiar with g++ the unix/linux gnu compiler, But I am on a windows box right now and only have a command line borland compiler c++. I have an object file and a source file and need to create an executable. In order to this g++ I believe I would first run a preprocess on the .cpp file which would create 'standard code' I think the term is, then I would run a compiler on the 'standard code' this would create assembly code, next I could run an assembler on the assembly code this would create object code. So then finally I could run a linker on the new object code as well as the original object. This would create an executable.

Using borland I found

CPP32.EXE is the preprocessor
and
ILINK32.EXE is the linker

but I don't see a compiler or assembler...
How does Borland go about going from 'standard code' from the preprocessor to object code????

Any help would be greatly appreciated Your compiler comes with no documentation?

Regards,

Paul McKenzie

SeventhStar
December 9th, 2002, 02:17 AM
look for 'bccXX.exe' were XX is nothing or a number and LINK.EXE
this must be enough

bccXX "sources"
link "obj files"