From: milan <mi...@ma...> - 2007-06-17 15:35:34
|
Sorry, I am newbie and I am playing with Piklab + sdcc. This little testing code: #include"pic18f1220.h" #include "adc.h" void main() { long temp; adc_open(ADC_CHN_1, ADC_FOSC_4, ADC_CFG_5A_0R, ADC_FRM_RJUST); while (adc_busy()) ; temp = (adc_read()); } I can compile it, but building all produces an output: sdcc -mpic16 -p18f1220 -V -Wl-c -Wl-s/usr/share/gputils/lkr/18f1220.lkr -I/home/milan/ide/piklab/sdcc/ad_test/ -I/usr/share/sdcc/include/pic16/ -oad_test.hex adtest.o warning: processor mismatch in "/usr/bin/../share/sdcc/lib/pic16/crt0i.o" warning: processor mismatch in "pic18f1220.o" warning: processor mismatch in "stack.o" error: missing definition for symbol "_adc_read", required by "adtest.o" error: missing definition for symbol "_adc_open", required by "adtest.o" error: missing definition for symbol "_adc_busy", required by "adtest.o" + "/usr/bin/gplink" -I"/usr/bin/../share/sdcc/lib/pic16" -I"/usr/share/sdcc/lib/pic16" -c -s/usr/share/gputils/lkr/18f1220.lkr -o ad_test.hex adtest.o crt0i.o pic18f1220.lib libsdcc.lib *** Exited with status: 1 *** Can You help? Milan |