[comp.sys.ibm.pc] How do I use external libraries with TC

NPASMITH@TUCCVM.BITNET (Philip A. Smith) (10/10/87)

I do it all the time.  First try it with a lib of obj files created
using TC with the same memory model and the MS LIB command, to avoid
problems with cdecl/pascal calling conventions, near/far functions, etc.
(If you can use MAKE I guess this isn't the problem.)
     
Here is the procedure, assuming you have JUNK.C that needs to use
object modules in C:\T\MYLIB\GRAF.LIB
     
1) Create the file JUNK.PRJ in the same dir. as JUNK.C:
JUNK
C:/T/MYLIB/GRAF.LIB
    (Undocumented feature: one front slash == two back slashes for paths)
     
2) TC JUNK
     
3) Alt-P      (Project Menu)
   P          (Select project name --> *.PRJ)
   <Return>   (Pop up window of all .PRJ files in dir.)
   Select JUNK.PRJ using arrow keys from list.
   <esc> <esc> get out of project menu
     
4) Alt-R (Make and execute file)
     
Unfortunately, step 3 has to be done every time, or you get link errors.