Path: utzoo!attcan!uunet!ogicse!ucsd!sdd.hp.com!marshall From: marshall@sdd.hp.com (Marshall Clow) Newsgroups: comp.sys.mac.programmer Subject: Re: Help needed in MPW C Message-ID: <1990Oct29.230952.17054@sdd.hp.com> Date: 29 Oct 90 23:09:52 GMT References: <21718@duke.cs.duke.edu> Organization: Hewlett Packard, San Diego Division Lines: 31 In article <21718@duke.cs.duke.edu> fang@physics.phy.duke.edu (Fang Zhong) writes: > > I got Link Errors as following: > >### Link: Error: Undefined entry, name: (Error 28) "SFGetfile" > Referenced from: stdfil in file: Az_processing.c.o >### Link: Error: Undefined entry, name: (Error 28) "SFPutfile" > Referenced from: stdfil in file: Az_processing.c.o > >My make-file is as following: [ make file lines deleted ] Try adding an "#include " to the list at the top of your source file. What is happening is that the compiler is deciding that SFGetFile is a procedure that it hasn't seen before. However, the name of the procedure that you want to call is really SFGETFILE, which is why the linker can't find it in the libraries. In Packages.h, the procedure is decalred as: pascal void SFGetFile(Point where,... and so on ... ); The "pascal" keyword means that the name is all upper case, as well as switching the order that the parameters are pushed onto the stack, as well as some other minor details. > >-- > Fang Zhong 1-919-684-8247 > Duke University Dept. of Physics fang@phy.duke.edu > Durham, N.C. 27706 Marshall Clow marshall@sdd.hp.com