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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to