CompuServe Thread

#SAS/C 5.10 Compiler Guru

2 messages in this thread
#1560From: Ethan SolomitaOct 6, 1990 12:41 PM
Alan, one problem that I'm having with Lattice 5.1 that is probably just my stupidity is this: I'm trying to compile with registerized args. I use -rr in the lc command but I get undefined stub functions. When I do it in two steps, linking with lcr.lib amiga.lib I still get the error, but @'s are changed to _'s. What am I doing wrong. Thanks, — Ethan
#1574From: Alan BlandOct 7, 1990 12:38 AM
When you use -rr to compile with registerized parameters, you MUST have a function prototype for every function you call. That means including the proto/whatever.h files (or proto/all.h if you're lazy). And, you must define prototypes for all of your functions. Set the option that requires function prototypes and you'll get a warning for any that you missed. In fact, it's good practice to always have prototypes anyway, as they'll quickly catch any type mis-matches you have in your function calls. Alan