Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbfsb!cbnewsc!psfales From: psfales@cbnewsc.att.com (Peter Fales) Newsgroups: comp.os.msdos.programmer Subject: Re: How do you command-line compile in TC++? Message-ID: <1991Jan29.040208.1353@cbnewsc.att.com> Date: 29 Jan 91 04:02:08 GMT References: <1991Jan28.214552.25542@d.cs.okstate.edu> <11577@helios.TAMU.EDU> Organization: AT&T Bell Laboratories Lines: 25 In article <11577@helios.TAMU.EDU>, rdw2030@venus.tamu.edu writes: > 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? > If you want to be REALLY sure you get them right, you need to enter the > whole thing. I usually use the IDE, but do experiment with TCC sometimes. > I enter: > > tcc -Id:\lang\tc\include -Ld:\lang\tc\lib foo.c > > Now you know why MAKE is so nice! Don't forget you can put those options in your TURBOC.CFG file. (It goes in the directory where TCC.EXE is located). Saves a lot of typing, even if you are using make! -- Peter Fales AT&T, Room 5B-420 N9IYJ 2000 N. Naperville Rd. UUCP: ...att!ihlpb!psfales Naperville, IL 60566 Domain: psfales@ihlpb.att.com work: (708) 979-8031