PDA

View Full Version : Borland Compiler: Compiling libraries from the command line



WHurricane16
03-09-2002, 08:09 PM
Hiya ;-)

I've been mucking around with the library from Andre Lamothe's Black Art of 3D Programming (http://www.flipcode.com/books/book05.shtml) but I wanted to and recompile the lib from the command line (I'm going old school at this :p) I'm lacking any hard documentation on Turbo C++ 3.0 (the compiler I'm using for Andre's Borland source) so I'm lacking the knowledge on how to get this working. My only real question is if the following instructions worked or not:

TCC -l-c -1 -mm -w -estorm.lib black3.obj black4.obj black5.obj black9.obj black11.obj black15.obj black17.obj black18.obj graphics.lib emu.lib mathm.lib cm.lib

I got the desired storm.lib, but the library didn't work when I tried to link it with code I've compiled with blacklib.lib earlier. Anyone see anything wrong with those command line instructions? Just want to make sure I'm on the right track ;-)

sean
03-28-2002, 04:09 PM
The only problem I see is there no space between -e and your first file argument. Other than that, I can only tell you that libraries generated with 3.0 aren't known for being the most successful. Try something else.

WHurricane16
03-30-2002, 09:36 PM
For the record.....


TLIB storm.lib +black3.obj +black4.obj +black5.obj +black9.obj +black11.obj +black15.obj +black17.obj +black18.obj

But that's irrelavent now.

sean
04-03-2002, 10:11 AM
hmm.... I'm surprized I didn't spot the wroing compiler.... it's the first thing on there! Another useful thing is the program PRJ2LIB. You can take a project file and it'll condense the whole thing down into a library, which was a new feature of 3.0