I'm having a problem with GNU C. I don't remember what version it is,
but it's not current.
The problem is this: the only way I can call Amiga functions is to use
the inline includes, which eats up more memory than I can spare. I
haven't been able to get the link libraries to work.
I ran amiga.lib from and old copy of Lattice C through hunk2gcc, then
ar'd the files into libamiga.a. When I try to link with it (gcc
-ofoo foo.c -lamiga), I get a message
"gcc:lib/libamiga.a(obj.xxxx.xxxxxx): Undefined symbol _SysBase
referenced from text segment" me I've tried putting a "struct SysBase
*SysBase" line in my program, figuring that it would work because
exec.library is always open, but it just gives me a bus error when I
run it.
What am I doing wrong? Do I need to get a newer version of GNU C? (I
don't have any documentation with the one I'm using now.)