Error Missing Definition For Symbol Sdcc
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Small Device C Compiler suite Mailing Lists Small Device C Compiler suite Brought to you by: benshi, bernhardheld, borutr, dhelton, and 18 others Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Support Requests Patches Feature Requests Bugs Webdocs News Discussion Code sdcc-devel sdcc-user Re: [Sdcc-user] error: missing definition for symbol "_adc_read", Re: [Sdcc-user] error: missing definition for symbol "_adc_read", From: Raphael Neider
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: https://sourceforge.net/p/sdcc/mailman/message/12702725/ Home Browse Small Device C Compiler suite Mailing Lists Small Device C Compiler suite Brought to you by: benshi, bernhardheld, borutr, dhelton, and 18 others Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Support Requests Patches Feature Requests Bugs Webdocs News Discussion Code sdcc-devel sdcc-user RE: Re: [Sdcc-user] sdcc, gputils toolchain: gplink error RE: Re: [Sdcc-user] sdcc, gputils toolchain: gplink error From: https://sourceforge.net/p/sdcc/mailman/message/11634826/ Vangelis Rokas
-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 http://osdir.com/ml/compilers.sdcc.user/2007-06/msg00027.html 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" http://comments.gmane.org/gmane.comp.compilers.sdcc.user/3609 > 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" error missing > -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 error missing definition 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/ Thread at a glance: Previous Message by Date: error: missing definition for symbol "_adc_read", 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 pic1