help, sdcc does not find the libraries

  • alejandro1957

    alejandro1957 - 2013-09-24

    use sdcc from ubuntu 07.04 always without problem.
    but now I can not have to fill in with sdcc.
    I get this error:
    Sonar_16F877A.c:1:24: error: pic16f877a.h: No such file or directory

    what happened?
    Having said that I have always installed from Synaptic sdcc

    sorry for my english

    Last edit: alejandro1957 2013-09-24
  • Raphael Neider

    Raphael Neider - 2013-09-24

    You may need to add --use-non-free to the compiler command line. If that does not help, you need to provide more information regarding your setup (command line arguments used, sdcc version).

    Good luck,

  • Philipp Klaus Krause

    Does ubuntu distribute the non-free files? AFAIK at least Debian does not.

    Of course the ideal situation would be to have them in a separate non-free package (but I don't think that effort will happen soon, given that Debian and Ubuntu don't even make the effort to package a current version of sdcc).


  • alejandro1957

    alejandro1957 - 2013-09-27

    is the version of sdcc:
    alejandro@alejandro-Aspire-V5-571$ sdcc -v
    SDCC : mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08 3.1.0 #7066 (Jun 14 2012) (Linux)

    and this comes out to compile with sdcc:
    alejandro@alejandro-Aspire-V5-571 ~/SDCC/16F877A/Sonar_16F877A $ sdcc -S -V -mpic14 -p16f877a --use-non-free -DCONFIG Sonar_16F877A.c
    + "/usr/bin/sdcpp" -nostdinc -Wall -DCONFIG -obj-ext=.o -DSDCC_USE_NON_FREE -DSDCC=310 -DSDCC_REVISION=7066 -DSDCC_pic14 -Dpic14 -DSDCC_PROCESSOR="16f877a" -isystem "/usr/bin/../share/sdcc/include/pic14" -isystem "/usr/share/sdcc/include/pic14" -isystem "/usr/bin/../share/sdcc/include" -isystem "/usr/share/sdcc/include" -isystem "/usr/bin/../share/./pic14" -isystem "/usr/share/./pic14" -isystem "/usr/bin/../share/." -isystem "/usr/share/." "Sonar_16F877A.c"
    Sonar_16F877A.c:1:24: error: pic16f877a.h: No such file or directory
    Sonar_16F877A.c:5: warning 197: keyword 'at' is deprecated, use '
    at' instead

    Sonar_16F877A.c:5: syntax error: token -> '1' ; column 16


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks