On 12.11.2012 9.58, "Soloviov Dmitry" <dmitrysolov...@yandex.ru> wrote:
>Hello! > >I've just installed latest version of SDCC and want to compile some >simplest possible program like > >#include <pic18fregs.h> > >void main() { > while (1) { > TRISB = 0; > PORTB = 19; > } >} > >with SDCC 3.2.1 >sdcc -mpic16 -p18f1220 -V test0.c > >But this message occurs: > >+ /usr/local/bin/sdcpp -nostdinc -Wall -Dpic18f1220 -D__18f1220 >-D__SDCC_PIC18F1220 -DSTACK_MODEL_SMALL -D__STACK_MODEL_SMALL -obj-ext=.o >-D__SDCC=3_2_1 -DSDCC=321 -D__SDCC_REVISION=8146 -DSDCC_REVISION=8146 >-D__SDCC_pic16 -DSDCC_pic16 -D__pic16 -D__STDC_NO_COMPLEX__ >-D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem >/usr/local/bin/../share/sdcc/include/pic16 -isystem >/usr/local/share/sdcc/include/pic16 -isystem >/usr/local/bin/../share/sdcc/include -isystem >/usr/local/share/sdcc/include test0.c >3: > >pic18fregs.h:397: 26: error: pic18f1220.h: No such file or directory Have you --use-non-free ?? From: SDCC Compiler User Guide ยจ"Pic device specific header and c source files are automatically generated from MPLAB include files, which are published by Microchip with a special requirement that they are only to be used with authentic Microchip devices. This reqirement prevents to publish generated header and c source files under the GPL compatible license, so they are located in non-free directory (see section 2.3). In order to include them in include and library search paths, the --use-non-free command line option should be defined." cheers Kusti > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user