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

mrk@gvgspd.UUCP (Michael R. Kesti) (10/10/87)

In article <2964@bellcore.bellcore.com> tr@wind.UUCP (tom reingold) writes:

>The subject line pretty much says it.  I want to use the integrated
>environment, i.e. TC.EXE.  I want to be able to link with Turbo's
>standard libraries *plus* my libraries that I use for graphics.  I
>know how to do this with MAKE but when I follow the instructions on
>page 68 of the user's guide, I get "undefine symbol" messages all over
>the place.

This is done via the PROJECT FILE facility.  For example, if the program to
be compiled were C:\TC\SRC\FOO.C and needed a library named C:\TC\LIB\BAR.LIB,
create c:\tc\src\foo.prj that contains:

	c:\tc\src\foo.c
	c:\tc\lib\bar.lib

Then, to compile, invoke TC, and specify c:\tc\src\foo.prj in the name section
of the project menu, then press F9.  You don't even need to load the source
file into the editor, as TC "knows" the source file from the project file.
It's still a good idea *TO* load it, however, as TC then compiles from memory
instead of disk, and is therefore faster.

-- 
===================================================================
Michael Kesti		Grass Valley Group, Inc.
P.O. Box 1114   	Grass Valley, CA  95945
UUCP:	...!tektronix!gvgpsa!gvgspd!mrk