Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!pt.cs.cmu.edu!rover.ri.cmu.edu!mkb From: mkb@rover.ri.cmu.edu (Mike Blackwell) Newsgroups: comp.sys.mac.programmer Subject: Problems with MPW Link & MacApp Message-ID: <10909@pt.cs.cmu.edu> Date: 29 Oct 90 22:49:34 GMT Reply-To: mkb@rover.ri.cmu.edu (Mike Blackwell) Organization: Carnegie-Mellon University, CS/RI Lines: 25 Keywords: I'm writing a medium sized application using MPW 3.1, MacApp 2.0 and C++ 3.1b1. Mac-II with 8M, system 6.0.7. Starting this afternoon, with the addition of just a few more methods, my application has stopped linking correctly, and falls out of MABuild with the following error: ### Link: Error: Main code (-m option) name not found. (Error 53) %__MAIN ### Link: Error: No Main code module or entry point. (Error 38) ### Link: Errors prevented normal completion. Of course there is a perfectly good main() in my program. The strange part is that this only occurs when I'm running under Multifinder. If I run MPW from Unifinder and it has all 8M available, it links just fine (by just running MABuild again - not even any recompiling). I have MPW set with a 3M partition (C++ needed it), and MABuild seems to use the -mf flag for link so it can get additional Multifinder memory, and Finder tells me I have at least a 2.7M block free. That would certainly seem to be enough memory... And we're still in the small application stage here. I tried giving MPW a 4M partition, but with the same results. Additional information: I'm building a debug version, and my code is segmented up in to a couple of nice bite sized chunks. Any ideas what the problem might be? Mike Blackwell mkb@rover.ri.cmu.edu