Thread: Borland Compiler: Compiling libraries from the command line

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    24

    Borland Compiler: Compiling libraries from the command line

    Hiya ;-)

    I've been mucking around with the library from Andre Lamothe's Black Art of 3D Programming but I wanted to and recompile the lib from the command line (I'm going old school at this ) 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 ;-)

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    24

    for the record

    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.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GCC: Compiling with both static and shared libraries
    By eatwithaspork in forum C Programming
    Replies: 4
    Last Post: 06-23-2008, 01:48 PM
  2. Trouble Compiling 1394 Development Libraries for Linux
    By Phanixis in forum Linux Programming
    Replies: 6
    Last Post: 10-05-2007, 10:48 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  5. Time libraries and funtions for Windows C Compiling
    By vmn_3k in forum C Programming
    Replies: 6
    Last Post: 08-14-2003, 01:24 PM