Borland Compiler: Compiling libraries from the command line

This is a discussion on Borland Compiler: Compiling libraries from the command line within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hiya ;-) I've been mucking around with the library from Andre Lamothe's Black Art of 3D Programming but I wanted ...

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

    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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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
    25

    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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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, 02:48 PM
  2. Trouble Compiling 1394 Development Libraries for Linux
    By Phanixis in forum Linux Programming
    Replies: 6
    Last Post: 10-05-2007, 11:48 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  4. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 09: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, 02:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21