Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!bbn!bbn.com!levin From: levin@bbn.com (Joel B Levin) Newsgroups: comp.sys.mac.programmer Subject: Re: i.o. problem with MPW C Keywords: MPW, C Message-ID: <37895@bbn.COM> Date: 28 Mar 89 22:11:52 GMT References: <222@uw-apl.UUCP> Sender: news@bbn.COM Reply-To: levin@BBN.COM (Joel B Levin) Distribution: na Organization: BBN Communications Corporation Lines: 55 I took your entire article, commented out the header and .sig, and changed the file name string to an absolute name that would work on my disk. The file, called oops.c was then compiled and linked as follows (The "6" at the end of the lines in the link command was the option-d line continuation character): =================================== # ** Compile and link: ** c oops.c -o oops.c.o Link -w -c 'MPS ' -t MPST 6 oops.c.o 6 "{Libraries}"stubs.o 6 "{CLibraries}"CRuntime.o 6 "{Libraries}"Interface.o 6 "{CLibraries}"StdCLib.o 6 "{CLibraries}"CInterface.o 6 -o oops # return; ### Warning 269 This function has an explicit return type and deserves a return value File "oops.c"; Line 34 #-------------------------------------------------------------------------- # return; ### Warning 269 This function has an explicit return type and deserves a return value File "oops.c"; Line 43 #-------------------------------------------------------------------------- # ** End of compile-and-link ** # ** Run the tool ** oops # ** Look at the output: ** files -l check_file_out Name Type Crtr Size Flags Last-Mod-Date -------------------- ---- ---- ------ ---------- ----------------- check_file_out 2K lvbspoimad 3/28/89 4:47 PM catenate check_file_out This shoulda been 1 This shoulda been 2 . . . This shoulda been 63 This shoulda been 64 =================================== Worked for me. (MPW 3.0 release version) UUCP: {backbone}!bbn!levin POTS: (617) 873-3463 INTERNET: levin@bbn.com