Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!zephyr.ens.tek.com!tektronix!reed!glacier!busker!f20.n226.z1.FIDONET.ORG!Chris.Gehlker From: Chris.Gehlker@f20.n226.z1.FIDONET.ORG (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: What does a guy have to do to use ctype.h ???? Message-ID: <650.2783DF0B@busker.fidonet.org> Date: 28 Dec 90 12:26:28 GMT Sender: ufgate@busker.fidonet.org (newsout1.26) Organization: FidoNet node 1:226/20 - cmhGate UF Gateway, Columbus OH Lines: 36 Reply-To: Chris.Gehlker@p12.f56.n114.z1.fidonet.org MR> What on earth am I doing wrong in the following test programme?? MR> The compiler says it all fine and dandy, but it won't link. MR> #include MR> #include MR> main() { if (isalpha('a')) printf("say something"); else MR> printf("say something else"); } MR> The linker chokes on it and spits out the following error message: MR> MR> ### Link: Error: Undefined entry, name: (Error 28) "__p_CType" MR> Referenced from: main in file: test.c.o ### Link: Errors prevented MR> normal completion. Just turning CreateMake loose on it produced: Link -d -c 'MPS ' -t MPST {OBJECTS} #Test.c.o "{CLibraries}"StdClib.o "{Libraries}"Stubs.o "{Libraries}"Runtime.o "{Libraries}"Interface.o -o Test which works here. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org + Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ -- Chris Gehlker - via FidoNet node 1:105/14 UUCP: ...!{uunet!glacier, ..reed.bitnet}!busker!226!20!Chris.Gehlker INTERNET: Chris.Gehlker@f20.n226.z1.FIDONET.ORG