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
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