Re: [Sdcc-user] how to create a .lib library file just like the libsdcc.lib?

2012-12-21 Thread Caio Rodrigues
1. First : You need to create the object files , let's say we are using pic 18f mcu By $sdcc -V --vc --debug -mpic16 -p18f4550 --use-non-free -I/. -L/. -c delay.c $sdcc -V --vc --debug -mpic16 -p18f4550 --use-non-free -I/. -L/. -c default.c It's create delay.o and default.o After: *g

Re: [Sdcc-user] I am trying to create a pic18f4550 a custom library and I get the error: "delay.lib" is not a valid coff object or archive returned errorcode 256

2012-12-01 Thread Caio Rodrigues
library: you should use the > gplib librarian which is a part of gputils. > > Borut > > > On 30. 11. 2012 23:40, Caio Rodrigues wrote: > > Thanks Borut Ražem and Douglas Goodall for the advices. > > I think sdcc compiles by default for the 8051 core and the sdcclib o

Re: [Sdcc-user] I am trying to create a pic18f4550 a custom library and I get the error: "delay.lib" is not a valid coff object or archive returned errorcode 256

2012-11-30 Thread Caio Rodrigues
/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 "main" "main.o" crt0i.o "libmydelay.lib" "libdev18f4550.lib" "libsdcc.lib" * returned

[Sdcc-user] I am trying to create a pic18f4550 a custom library and I get the error: "delay.lib" is not a valid coff object or archive returned errorcode 256

2012-11-30 Thread Caio Rodrigues
Author: YOUR NAME (), *Company: * * = */ #include "delay.h" #include "default.h" void delay1s(){ u8 co