Hi Raphael,

PIC18fregs.h is indeed in /usr/share/sdcc/include/pic16. I think the problem is that SDCC does not look into pic16 directory on its own. Only my source files are in folders with names that have white space. I did indeed install SDCC into a blank-free path, which is in /usr/share/sdcc/.


On 9/15/07, Raphael Neider <rneider@web.de> wrote:
Hi Stanley,

> prak@prak-laptop:/media/sda5/Dairy Cow Research/datalogging
> scale/software/LED_toggle$ sdcc main.c
> main.c:1:24: pic18fregs.h: No such file or directory

SDCC cannot find pic18fregs.h , which should reside in
You can either add the (correct) path to pic18fregs.h to your SDCC
command line via -I "correct/path/goes/here" or try to include
#include <pic16/pic18fregs.h>
maybe SDCC does not look into the pic16 directory on its own?!?

Another problem might be caused by whitespace in the search paths (Dairy
Cow Research?!?) Try to install SDCC into a blank-free path, e.g.,


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
Sdcc-user mailing list