Path: utzoo!attcan!uunet!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!athena.mit.edu!rlcarr From: rlcarr@athena.mit.edu (Rich Carreiro) Newsgroups: comp.sys.amiga.tech Subject: Lattice 5.04 problem Summary: registerized args Message-ID: <1989Nov22.022406.9843@athena.mit.edu> Date: 22 Nov 89 02:24:06 GMT Sender: news@athena.mit.edu (News system) Reply-To: rlcarr@space.mit.edu (Rich Carreiro) Organization: the Fire Raymond Berry Club Lines: 35 I have updated to Lattice 5.04 and am having problems with using registerized parameters. My compile line is: lc -v -rr -Lcdv detab.c (yes, from good old K+R) There is an added #include along with the #include that is part of the program. OK, it compiles fine, but when it begins to link I get: Undefined Symbol First Referenced ---------------- ---------------- @main LIB:lcr.lib Note that I DO NOT have a prototype for main(). According to the lattice manual, not having a function prototype this means that the compiler will default to passing args on the stack for that function. If I have mixed standard args and registerized args, do I have to link against BOTH lc.lib and lcs.lib, or is that unnessesary? Or is this a bug and the compiler is generating an incorrect symbol or an error in the symbol name within the library. I get the same error when I use the -w option to lc (16 bit ints) except that the first referenced is LIB:lcsr.lib. Thank you for any help. -- Rich Carreiro - Most Biased Boston Celtics Fan! Get well soon, Johnny Most! ARPA: rlcarr@space.mit.edu Welcome back, Larry! UUCP: ...!mit-eddie!space.mit.edu!rlcarr McHale, 6th man supreme! BITNET: rlcarr@space.mit.edu "Follow through!"