Re: [Sdcc-user] PIC18F2620 pragma directive problem

2007-09-15 Thread sdcc
Hi Stanley Lee wrote: > Hi, > > I have tried to compile Jan's code in terminal and got the following > printout instead. I'm having a feeling that SDCC isn't recompiled > properly on my computer. Looks like you didnt tell sdcc for which cpu you want to compile your code. You need to add somethin

Re: [Sdcc-user] PIC18F2620 pragma directive problem

2007-09-15 Thread sdcc
Stanley Lee wrote: > Hi, > > I have tried to compile Jan's code in terminal and got the following > printout instead. I'm having a feeling that SDCC isn't recompiled > properly on my computer. and btw, did you installed the pic16 libs like described in the wiki (see also http://ubicomp.lancs.ac

Re: [Sdcc-user] PIC18F2620 pragma directive problem

2007-09-15 Thread Raphael Neider
Hi Stanley, > [EMAIL PROTECTED]:/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 /usr/share/sdcc/include/pic16. You can either add the (correct) path t

Re: [Sdcc-user] PIC18F2620 pragma directive problem

2007-09-15 Thread Stanley Lee
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/.

Re: [Sdcc-user] PIC18F2620 pragma directive problem

2007-09-15 Thread Stanley Lee
Hi, I've managed to install the newest version of sdcc's nightly snapshot. After ensuring that the PIC18fregs.h file is in the primary include folder of the new sdcc. I now get the following error from piklab, which has to do with the hardware pins I think. It would be fantastic if someone points