u***@garethlock.com
2020-03-26 13:57:32 UTC
Been spending the time at home re-writing Brix in C. Having trouble linking due to missing symbols. The variables involved are declared as extern int32 (typedef'd as long) and contain the addresses of the graphics data... gfx_sprite, gfx_digits and gfx_chars. There is a fourth, gfx_bank, which always points to one of the other three. They are given a value by the routine that loads the graphics.
I first tried declaring these in the main h file which all C files include, then the main C file, then with the graphics routines. No errors mentioning these are generated when compiling, however when trying to link the objects (.o files) together to generate an executable, no matter which order I link everything in or where I put the declarations I keep getting these errors referring to them as missing symbols. BTW I'm using the Acorn DDE supplied with NutPi (cc v 5.71 Aug 2014)
I first tried declaring these in the main h file which all C files include, then the main C file, then with the graphics routines. No errors mentioning these are generated when compiling, however when trying to link the objects (.o files) together to generate an executable, no matter which order I link everything in or where I put the declarations I keep getting these errors referring to them as missing symbols. BTW I'm using the Acorn DDE supplied with NutPi (cc v 5.71 Aug 2014)