Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rutgers!rochester!kodak!uupsi!sunic!isgate!krafla!aries From: aries@rhi.hi.is (Mimir Reynisson) Newsgroups: comp.sys.mac.programmer Subject: What does a guy have to do to use ctype.h ???? Message-ID: <2569@krafla.rhi.hi.is> Date: 24 Dec 90 12:36:50 GMT Organization: University of Iceland Lines: 42 What on earth am I doing wrong in the following test programme?? The compiler says it all fine and dandy, but it won't link. #include #include main() { if (isalpha('a')) printf("say something"); else printf("say something else"); } The linker chokes on it and spits out the following error message: ### Link: Error: Undefined entry, name: (Error 28) "__p_CType" Referenced from: main in file: test.c.o ### Link: Errors prevented normal completion. The current solution to this problem is to #undef all these macros that use the __p_CType array, but my question is where is this array defined??? Or do I have to do it myself??? Here is the link I used: Link -w -c 'MPS ' -t MPST test.c.o -sn STDIO=Main -sn INTENV=Main -sn %A5Init=Main "{Libraries}"Stubs.o "{CLibraries}"CRuntime.o "{CLibraries}"StdCLib.o "{CLibraries}"CInterface.o "{Libraries}"Interface.o "{Libraries}"ToolLibs.o -o test It's getting to be a bit annoying ... // Mimir Reynisson // Software Island (aries@rhi.hi.is)