Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

include-files can not be found

2010-02-24
2013-03-12
  • Viktor Sawt...
    Viktor Sawt...
    2010-02-24

    Hello,

    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"pic16f628a.h"
    //#include <include/pic/pic16f628a.h>
    __config(HS & WDTDIS & BORDIS & PWRTDIS & MCLRDIS);
    // Konfiguration der Ports
    TRISA = 00000000;           // Port A Ausgang
    TRISB = 00000000;           // Port B Ausgang
    // Comparatorn ausschalten
    CMCON = 7;
    // Ports setzen
    PORTB = 170;
    void main(void){
         while(1==1){
         }
    }
    
     
  • Borut Ražem
    Borut Ražem
    2010-02-24

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

    Borut