include-files can not be found

  • Viktor Sawt...

    Viktor Sawt... - 2010-02-24


    I have a problem with SDCC to create a hex-file.
    I downloaded SDCC Windows package and installed it on my harddisc: C:\Programme\SDCC

    I testet the compiler by compiling a simple hello_world_program written in c.
    The result was an *.ihx file.
    The compiler is working.

    Now I want to compile a programm for my PIC16F628a controller.
    And the result I get is: error: pic16f628a.h : No such File or directory.

    It's obviousli  that the compiler can't find the necesery file.

    Can anybody help me solving my problem?
    I tried to find the solution on the web and found nothing that could help.

    Here is my code:

    #define __16f628a
    //#include <include/pic/pic16f628a.h>
    // Konfiguration der Ports
    TRISA = 00000000;           // Port A Ausgang
    TRISB = 00000000;           // Port B Ausgang
    // Comparatorn ausschalten
    CMCON = 7;
    // Ports setzen
    PORTB = 170;
    void main(void){
  • Borut Ražem

    Borut Ražem - 2010-02-24

    Which version of sdcc you downloaded?
    What does "sdcc -version" say?



Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks