#1454 pic16 "*.o" extension unsupported

closed-invalid
nobody
None
5
2008-05-12
2008-05-09
No

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.

Discussion

  • SeventhGuardian

    SeventhGuardian - 2008-05-12

    Logged In: YES
    user_id=1067152
    Originator: YES

    It was obviously my fault, I forgot the -mpic16 directive while linking the *.o files.

    Sorry for the fuss..

     
  • SeventhGuardian

    SeventhGuardian - 2008-05-12
    • status: open --> open-invalid
     
  • SeventhGuardian

    SeventhGuardian - 2008-05-12
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.