Thanks for reply!

That's better now, but I'm still frustrated..
$ sdcc -mpic16 -p18f1220 -V --use-non-free test1.c
+ /usr/local/bin/sdcpp -nostdinc -Wall -Dpic18f1220 -D__18f1220 
-D__SDCC_PIC18F1220 -DSTACK_MODEL_SMALL -D__STACK_MODEL_SMALL -obj-ext=.o 
-D__SDCC_USE_NON_FREE -DSDCC_USE_NON_FREE -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 
-isystem /usr/local/bin/../share/sdcc/non-free/include/pic16 -isystem 
/usr/local/share/sdcc/non-free/include/pic16 -isystem 
/usr/local/bin/../share/sdcc/non-free/include -isystem 
/usr/local/share/sdcc/non-free/include  test1.c 
+ gpasm -DSTACK_MODEL_SMALL -D__STACK_MODEL_SMALL -o test1.o -c test1.asm
+ gplink -I/usr/local/bin/../share/sdcc/lib/pic16 
-I/usr/local/share/sdcc/lib/pic16 
-I/usr/local/bin/../share/sdcc/non-free/lib/pic16 
-I/usr/local/share/sdcc/non-free/lib/pic16   -w -r -o test1 test1.o  crt0i.o 
libdev18f1220.lib libsdcc.lib 
crt0i.o: No such file or directory
+ gplink -I/usr/local/bin/../share/sdcc/lib/pic16 
-I/usr/local/share/sdcc/lib/pic16 
-I/usr/local/bin/../share/sdcc/non-free/lib/pic16 
-I/usr/local/share/sdcc/non-free/lib/pic16   -w -r -o test1 test1.o  crt0i.o 
libdev18f1220.lib libsdcc.lib  returned errorcode 256


12.11.2012, 12:09, "Kustaa Nyholm" <[email protected]>:
> On 12.11.2012 9.58, "Soloviov Dmitry" <[email protected]> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to