Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!usc!ucselx!news From: purcell@sciences.sdsu.edu (Guy B. Purcell) Newsgroups: comp.sys.mac.programmer Subject: INIT problem Message-ID: <1990Jul20.180917.11157@ucselx.sdsu.edu> Date: 20 Jul 90 18:09:17 GMT Sender: news@ucselx.sdsu.edu (News Admin) Organization: SDSU College of Sciences Lines: 16 I am having problems linking an INIT in MPW 3.1. I followed the gist of the CDEF example in the manual, but get a link error: ### Link: Error: Undefined entry, name: (Error 28) "main" Referenced from: CMain in file: Beyond Help:Development:MPW:Libraries:CLibrari es:CRuntime.o The name of my entry point is "main". However, I noticed that the in the CDEF example, the entry point is not all in caps but the -m link option is. So, I changed my -m option to "MAIN" & I get a different error: ### Link: Error: Data Initialization code is not being called. (Error 57) My question: which is the correct -m option -- all caps or exactly as the function is declared in the code? If the latter, how do I link with the runtime unit without the error? Thanks lots. Guy (purcell@zeus.sdsu.edu)