Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!apple!dan From: dan@Apple.COM (Dan Allen) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C compile Message-ID: <16645@apple.Apple.COM> Date: 6 Sep 88 00:16:48 GMT References: <6923@jhunix.HCF.JHU.EDU> Reply-To: dan@apple.com.UUCP (Dan Allen) Organization: Apple Computer Inc, Cupertino, CA Lines: 19 In article <6923@jhunix.HCF.JHU.EDU> ins_ammm@jhunix.UUCP (Mamdouh Maher) writes: > I am trying to compile a simple C program with MPW C. This is the program: > >#include "DDrive 20:MPW:MPW C:CIncludes:stdIO.h" >main() >{ > printf("Hi\n"); >} > > Now, the program compiles, but it does not link. The linker always >fails to understand the printf. Does anyone know how I can solve this >problem? It sounds like you are not linking with the standard libraries that are needed, like StdCLib.o, Math.o, CInterface.o, CRuntime.o, etc. There are a mess of them... Dan Allen Apple Computer