Re: [Dev-C++] Borlands command line compiler 5.5 has no editor
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Bolek V. <vr...@pa...> - 2001-03-22 12:42:57
|
> I have Borlands' command line compiler 5.5 and all the
> libraries - more libraries than come with Dev-C++ but
> Borland has no IDE ... anybody know where a good one
> could be? Or if there's some way to use Dev-C++
> editor to write and link code for borland compiler (or
> use the borland libraries in Dev-C++? I dont believe
> this violates any copright agreements) someone tell
> me if they have any idea. I dont know a lot of the
> details of compilers.
Of course you can use Dev-CPP to edit the files and BCC 5.5 to compile.
I had been doing it for a long time and I found these things:
1) BCC uses other switches and command line options than the standard
gcc or unix compilers do. For example, you don't use -llibrary to link a
library. Instead, you simply add the library file name to the list of
compiled files. So you will be unable to compile with F9 and will have
to call BCC from the command line, for example with a batch file or
something like that. Or you can write a wrapper program that will
translate dev-cpp compiler options to BCC options. I suspect that using
makefile generated with Dev-CPP will not work due to the difference in
command line options, but writing makefiles yourselves will work.
2) Borland uses another format of libraries (.lib) than Dev-CPP. You
cannot mix them. The same for include files. Of course include files are
simple text files in both Dev-cpp and Borland, but mixing them might
give very strange results. I suppose object files are different format
too.
3) Use tlib instead of ar or what Dev-CPP uses to create library files.
4) Don't use Dev-CPP compile to check your code before compiling with
Borland. Borland is more ANSI, some header files are different or have
different names and so on. So code that is OK for Borland might be wrong
for Dev-CPP and vice versa.
5) The command line switches for BCC 5.5 are partially documented in the
help file included with BCC 5.5 and are the same as for the command line
compiler in C++ Builder 5 (the compiler is the same).
--
============================================================
Ing. Boleslav Vrany
Stanice techniku DDM hl. m. Prahy
Pod Juliskou 2a
Praha 6 - Dejvice
16000
Czech Republic
tel. (420 2) 243 10 240
|