|
From: Miles G. <mil...@gm...> - 2009-09-03 20:32:55
|
I get the error: Invalid symbol type = for FRPAGE ...when I attempt to link my application like so: sdcc --model-large --lib-path c:/full/path/to/sdcc/lib/large main.rel can.rel ADC.rel Uart0.rel Timers.rel Clock.rel PortConfig.rel I tried googling for sdcc and "invalid symbol type", and I don't find any history of others getting this error. Anyone know what I'm doing wrong? When I search for FRPAGE, all I see is the __sfr definition of SFRPAGE in sdcc's mcs51/C8051F060, as well as using SFRPAGE in my code. Thanks, Miles PS: Not sure if it's related, but I compiled my code with sdcpp, instead of sdcc. I can't figure out how to give an -MD option to sdcc so that it passes it on to sdcpp, so I just called sdcpp directly (even though I've often found it to be problematic to call g++ directly, instead of letting gcc do it. Does sdcc work the same way?). Here's how I invoked the compiler: sdcpp can.c -debug -Ic:/full/path/to/sdcc/include -MD main.d -o main.rel |