Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!tut.cis.ohio-state.edu!ucbvax!pasteur!dog.ee.lbl.gov!csa2.lbl.gov!eastman From: eastman@csa2.lbl.gov (JACK EASTMAN) Newsgroups: comp.sys.mac.programmer Subject: Re: What does a guy have to do to use ctype.h ???? Message-ID: <8778@dog.ee.lbl.gov> Date: 26 Dec 90 02:28:01 GMT References: <2569@krafla.rhi.hi.is> Reply-To: eastman@csa2.lbl.gov Organization: Lawrence Berkeley Laboratory - Berkeley, CA, USA Lines: 27 X-Local-Date: Wed, 26 Dec 90 10:31:35 PST News-Software: VAX/VMS VNEWS 1.3-4 In article <2569@krafla.rhi.hi.is>, aries@rhi.hi.is (Mimir Reynisson) writes... > >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. > Your headers and libraries are parts of different MPW distributions. The array __p_CType is called three different things in the 3.0, 3.1 and 3.2 releases. Bring everything up to date and you'll be ok. -Jack Eastman -Berkeley Systems, Inc.