Compiling the file "main.c" with "sdcc -c main.c -mpic16 -p18f2685" outputs a "main.o" file.
The problem is, when invoking sdcc to link it, I get this:
$ sdcc main.o
at 1: warning 119: don't know what to do with file 'main.o'. file extension unsupported
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.8.1 #5154 (May 8 2008) (UNIX)
This happens with both 2.8.0 and latest svn code.
Omiting the "-mpic16 -p18f2685" I get a main.rel file, which can then be linked with "sdcc main.rel", but I'm not sure if the target arch is still pic16.
Log in to post a comment.