Hi Milan,

> 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

You need to link with libio18f1220.lib as well, just add it to the (end 
of) command line of sdcc or gplink...

Regards,
Raphael

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to