Article View: comp.os.msdos.programmer
Article #4420Re: How do you command-line compile in TC++?
From: Lance Bledsoe
Date: Tue, 29 Jan 1991 15:49
Date: Tue, 29 Jan 1991 15:49
30 lines
1651 bytes
1651 bytes
In article <1991Jan28.214552.25542@d.cs.okstate.edu> ong@d.cs.okstate.edu (ONG ENG TENG) writes:
>I am attempting to use the command-line compile in TC++. I went thru
>the manuals twice, tried all kinds of options (including -I and
>-L), but still I get "undefined symbols" during link time for
>instructions like "setcolor", "kbhit", etc. If I compile it
>inside the IDE, it works fine. What am I doing wrong?
Here is part of a makefile that I use:
LIBS= tct_t2s.lib
COMP= -v -y -C -f- -c -w -Ic:\tcp\tct\include
LINK= -lv -lc -ld -M -Lc:\tcp\tct\lib
win.exe : video.obj window.obj win.obj
tcc $(LINK) win.obj video.obj window.obj $(LIBS)
video.obj : video.cpp video.hpp ascii.hpp
tcc $(COMP) video.cpp
win.obj : win.cpp video.hpp window.hpp ascii.hpp
tcc $(COMP) win.cpp
window.obj : window.cpp video.hpp window.hpp ascii.hpp
tcc $(COMP) window.cpp
--
Lance Bledsoe Off: (512) 343-1111
Pencom Software, Inc. Fax (512) 343-9650
8716 Loop 360 N. Suite 300 UUCP: cs.utexas.edu!pensoft!lwb
Austin, Texas 78759 UUNET: uunet!uudell!pensoft!lwb
Technical Details
Message-ID:
<3020@pensoft.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!radar!milano.sw.mcc.com!uudell!pensoft!lwbReferences:
<1991Jan28.214552.25542@d.cs.okstate.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!radar!milano.sw.mcc.com!uudell!pensoft!lwb From: lwb@pensoft.UUCP (Lance Bledsoe) Newsgroups: comp.os.msdos.programmer Subject: Re: How do you command-line compile in TC++? Message-ID: <3020@pensoft.UUCP> Date: 29 Jan 91 15:49:49 GMT References: <1991Jan28.214552.25542@d.cs.okstate.edu> Organization: Pencom Software, Austin, TX Lines: 30