LPCXpresso cannot find library, even when the library is linked in the MCU settings. Any suggestion??

cancel
Showing results for 
Search instead for 
Did you mean: 

LPCXpresso cannot find library, even when the library is linked in the MCU settings. Any suggestion??

307 Views
Contributor II

I am trying to port a code from Code Red to LPCXpresso. While doing so, the compiler shows an error which says,
cannot find -lFreeRTOS_Library LCD_4.3 C/C++ Problem. I am very sure, the library for RTOS is connected/linked. 

pastedImage_1.png

This is resulting in compilation error to create the .axf file. I tried the same in Red Suite, and the compilation is successful.

I am using the Newlib library headers and sometimes, I get an "Undefined Reference" error as well. Changing the Newlib to Newlib(nohost) or (semihost) does not cure the problem. have a deadline to meet. I am new to this work. any and all suggestions are really helpful.

Labels (3)
7 Replies

55 Views
Contributor II

Hello Con Verse,

I was able to resolve the problem. It is the porting to GCC 5 issue.  GCC defaults to -std=gnu11 instead of -std=gnu89. This creates errors that users should be aware of. 

To fix it, I used the ISO C99, along with "extern" added to the inline functions. 

I was able to get rid of all errors and get a working code.

Thanks again

0 Kudos

55 Views
Contributor II

Hello Con Verse,

See below, build log for the "Undefined Reference"

15:44:51 **** Build of configuration Release for project LCD_4.3 ****

make -k all

Building target: LCD_4.3.axf

Invoking: MCU Linker

arm-none-eabi-gcc -nostdlib -L"E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\FreeRTOS_Library" -L"E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\gui_src" -L"E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\main_src" -L"E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\guilib" -L"E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\ramtexLIB_4.3" -L"E:\2i Compiled using LPCXpresso\2i compiled\CMSISv2p00_LPC17xx" -L"E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\ramtexLIB_4.3\Release" -L"E:\2i Compiled using LPCXpresso\2i compiled\CMSISv2p00_LPC17xx\Release" -L"E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\FreeRTOS_Library\Release" -Xlinker -Map=LCD_4.3.map -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T LCD_4_3_Release.ld -o "LCD_4.3.axf"  ./ssd1963/ghwinit.o  ./main_src/24LC256.o ./main_src/AD7991.o ./main_src/DS1339.o ./main_src/LPC1768ADC.o ./main_src/LTC2451.o ./main_src/Measurements.o ./main_src/PCA9555.o ./main_src/Thermistor.o ./main_src/absPressure.o ./main_src/ad7789.o ./main_src/adc.o ./main_src/alarms.o ./main_src/brightnessControl.o ./main_src/calibrate.o ./main_src/cr_startup_lpc17.o ./main_src/dac.o ./main_src/debugPrint.o ./main_src/delay.o ./main_src/events.o ./main_src/flow.o ./main_src/gui.o ./main_src/i2c.o ./main_src/iap.o ./main_src/keyEvent.o ./main_src/led.o ./main_src/lsc.o ./main_src/main.o ./main_src/membrane_switch.o ./main_src/pc.o ./main_src/peripheral.o ./main_src/persistentMem.o ./main_src/printer.o ./main_src/probe.o ./main_src/pump.o ./main_src/pwm.o ./main_src/report.o ./main_src/rsa.o ./main_src/rtcTime.o ./main_src/softPwr.o ./main_src/spi.o ./main_src/uart.o ./main_src/utility.o ./main_src/valves.o ./main_src/view.o ./main_src/wdt.o  ./guilib/animate.o ./guilib/barhor.o ./guilib/barver.o ./guilib/gframedvp.o ./guilib/gplinep.o ./guilib/gputlist.o ./guilib/gputsclr.o ./guilib/gpwordp.o ./guilib/gswapcol.o ./guilib/gtouch.o ./guilib/gtouchkp.o ./guilib/hortxtscroll.o ./guilib/sa_delay.o ./guilib/scrolhor.o ./guilib/timeout.o ./guilib/timestmp.o ./guilib/tsdiff.o ./guilib/vpalloc.o ./guilib/wnalloc.o ./guilib/wncbox.o ./guilib/wnframe.o ./guilib/wnfrsym.o ./guilib/wnmenu.o ./guilib/wnpopup.o ./guilib/wnpopval.o  ./gui_src/arial_large_digits.o ./gui_src/demo_bottombutton.o ./gui_src/demo_button.o ./gui_src/demo_calibration.o ./gui_src/demo_drift.o ./gui_src/demo_icondisplay.o ./gui_src/demo_keypad.o ./gui_src/demo_main1a.o ./gui_src/demo_main1b.o ./gui_src/demo_main1c.o ./gui_src/demo_main2a.o ./gui_src/demo_main3.o ./gui_src/demo_main4.o ./gui_src/demo_main4a.o ./gui_src/demo_main4b.o ./gui_src/demo_main4c.o ./gui_src/demo_main4c_day.o ./gui_src/demo_main4c_format.o ./gui_src/demo_main4c_time.o ./gui_src/demo_main4d.o ./gui_src/demo_main4d_language.o ./gui_src/demo_main4d_monitor.o ./gui_src/demo_mainmenu.o ./gui_src/demo_reagent.o ./gui_src/demo_setpoint.o ./gui_src/demo_shutdown.o ./gui_src/demo_startwarn.o ./gui_src/demo_timedate.o ./gui_src/demo_warning.o ./gui_src/gkeylook.o ./gui_src/gsetabsarea.o ./gui_src/gtouchevent.o ./gui_src/keydemo.o ./gui_src/popmenu.o ./gui_src/strings.o  ./cfgio/ghwioini.o  ./bussim/bussim.o  ./.metadata/.plugins/org.eclipse.cdt.make.core/specs.o   -lramtexLIB_4.3 -lCMSISv1p30_LPC17xx -lFreeRTOS_Library

./main_src/absPressure.o: In function `getPressure':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/absPressure.c:26: undefined reference to `getCD'

./main_src/calibrate.o: In function `calibrateLSCDataPoint':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:193: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:193: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:197: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:197: undefined reference to `getCD'

./main_src/calibrate.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:202: more undefined references to `getCD' follow

./main_src/calibrate.o: In function `setReagent':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:274: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:274: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:277: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:281: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:285: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:289: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:293: undefined reference to `getCD'

./main_src/calibrate.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:297: more undefined references to `getCD' follow

./main_src/calibrate.o: In function `computeIntRef':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:394: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:394: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:395: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:398: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:400: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:402: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:404: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:410: undefined reference to `getCD'

./main_src/calibrate.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:416: more undefined references to `getCD' follow

./main_src/calibrate.o: In function `setSerialNumber':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:473: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:481: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:481: undefined reference to `getPM'

./main_src/calibrate.o: In function `setCalLanguage':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:516: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:526: undefined reference to `getPM'

./main_src/calibrate.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:526: more undefined references to `getPM' follow

./main_src/calibrate.o: In function `dacGain':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:591: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:599: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:599: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:611: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:619: undefined reference to `getCD'

./main_src/calibrate.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:619: more undefined references to `getCD' follow

./main_src/calibrate.o: In function `dumpEEPROM1':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1151: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1153: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1182: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1183: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1184: undefined reference to `getPM'

./main_src/calibrate.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1185: more undefined references to `getPM' follow

./main_src/calibrate.o: In function `dumpEEPROM2':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1238: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1239: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1240: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1241: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1242: undefined reference to `getCD'

./main_src/calibrate.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1243: more undefined references to `getCD' follow

./main_src/calibrate.o: In function `calClock':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/calibrate.c:1369: undefined reference to `getSystemTime'

./main_src/events.o: In function `eventProcessorTask':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/events.c:128: undefined reference to `getCD'

./main_src/lsc.o: In function `voltsToScatter_V':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/lsc.c:78: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/lsc.c:79: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/lsc.c:79: undefined reference to `getCD'

./main_src/pc.o: In function `sendDongleID':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:84: undefined reference to `getCD'

./main_src/pc.o: In function `processString':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:414: undefined reference to `getSystemTime'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:416: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:416: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:417: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:417: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:418: undefined reference to `getPM'

./main_src/pc.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:418: more undefined references to `getPM' follow

./main_src/pc.o: In function `processString':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:424: undefined reference to `getSystemTime'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:426: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:426: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:427: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:427: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:428: undefined reference to `getPM'

./main_src/pc.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/pc.c:428: more undefined references to `getPM' follow

./main_src/peripheral.o: In function `peripheralDetectTask':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/peripheral.c:212: undefined reference to `getCD'

./main_src/report.o: In function `printHeader':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/report.c:111: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/report.c:113: undefined reference to `getSystemTime'

./main_src/report.o: In function `printDataSet':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/report.c:257: undefined reference to `getSystemTime'

./main_src/report.o: In function `printFooter':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/report.c:365: undefined reference to `getSystemTime'

./main_src/report.o: In function `startScanningTime':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/report.c:441: undefined reference to `getSystemTime'

./main_src/report.o: In function `pauseScanningTime':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/report.c:475: undefined reference to `getSystemTime'

./main_src/rtcTime.o: In function `timeTask':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/rtcTime.c:145: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/rtcTime.c:147: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../main_src/rtcTime.c:147: undefined reference to `getPM'

./gui_src/demo_calibration.o: In function `calib_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_calibration.c:135: undefined reference to `getCD'

./gui_src/demo_main1a.o: In function `upconc_menu_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1a.c:396: undefined reference to `alarm_menu_event'

./gui_src/demo_main1b.o: In function `read_upconc_menu_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:235: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:237: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:240: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:242: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:245: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:250: undefined reference to `getCD'

./gui_src/demo_main1b.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:255: more undefined references to `getCD' follow

./gui_src/demo_main1b.o: In function `read_upconc_menu_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:301: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:303: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:306: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:308: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:311: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:318: undefined reference to `getCD'

./gui_src/demo_main1b.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1b.c:323: more undefined references to `getCD' follow

./gui_src/demo_main1c.o: In function `display_concentration':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1c.c:122: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1c.c:122: undefined reference to `getPM'

./gui_src/demo_main1c.o: In function `display_upconc_menu_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1c.c:213: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1c.c:355: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1c.c:355: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main1c.c:444: undefined reference to `alarm_menu_event'

./gui_src/demo_main2a.o: In function `set_internal_ref_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:470: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:470: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:471: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:473: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:476: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:478: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:481: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:486: undefined reference to `getCD'

./gui_src/demo_main2a.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:491: more undefined references to `getCD' follow

./gui_src/demo_main2a.o: In function `set_internal_ref_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main2a.c:698: undefined reference to `alarm_menu_event'

./gui_src/demo_main3.o: In function `display_leakage':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:150: undefined reference to `getCD'

./gui_src/demo_main3.o: In function `read_leakage':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:391: undefined reference to `getalarms'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:402: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:402: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:601: undefined reference to `getalarms'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:630: undefined reference to `getalarms'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:753: undefined reference to `alarm_menu_event'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:760: undefined reference to `getalarms'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:837: undefined reference to `getalarms'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main3.c:886: undefined reference to `getalarms'

./gui_src/demo_main4.o: In function `setup_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main4.c:328: undefined reference to `alarm_menu_event'

./gui_src/demo_main4a.o: In function `setup1_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main4a.c:669: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main4a.c:669: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main4a.c:670: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main4a.c:670: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main4a.c:753: undefined reference to `getPM'

./gui_src/demo_main4a.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_main4a.c:753: more undefined references to `getPM' follow

./gui_src/demo_mainmenu.o: In function `mainmenu_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_mainmenu.c:518: undefined reference to `alarm_menu_event'

./gui_src/demo_reagent.o: In function `reagent_menu_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:510: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:511: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:515: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:516: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:520: undefined reference to `getCD'

./gui_src/demo_reagent.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:521: more undefined references to `getCD' follow

./gui_src/demo_reagent.o: In function `reagent_menu_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:545: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:545: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:546: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_reagent.c:546: undefined reference to `getPM'

./gui_src/demo_setpoint.o: In function `alarm_setpoint':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_setpoint.c:535: undefined reference to `getPM'

./gui_src/demo_setpoint.o:E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_setpoint.c:535: more undefined references to `getPM' follow

./gui_src/demo_timedate.o: In function `update_time':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_timedate.c:262: undefined reference to `getSystemTime'

./gui_src/demo_timedate.o: In function `change_date':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_timedate.c:287: undefined reference to `getSystemTime'

./gui_src/demo_timedate.o: In function `change_time':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/demo_timedate.c:308: undefined reference to `getSystemTime'

./gui_src/keydemo.o: In function `isRezeroDone':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:986: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:986: undefined reference to `getCD'

./gui_src/keydemo.o: In function `start_event':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:602: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:606: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:608: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:610: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:612: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:614: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:616: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:618: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:620: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:622: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:624: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:628: undefined reference to `getCD'

./gui_src/keydemo.o: In function `mainmenu_init':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:367: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:369: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:372: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:374: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:376: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:378: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:381: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:383: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:385: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:387: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:391: undefined reference to `getCD'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:449: undefined reference to `setalarms'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:456: undefined reference to `getSystemTime'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:466: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:466: undefined reference to `getPM'

./gui_src/keydemo.o: In function `demo_start_init':

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:160: undefined reference to `getSystemTime'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:170: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:170: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:207: undefined reference to `getPM'

E:\2i Compiled using LPCXpresso\2i compiled\2I-Main-MultiLanguage\LCD_4.3\Release/../gui_src/keydemo.c:207: undefined reference to `getPM'

collect2.exe: error: ld returned 1 exit status

make: *** [LCD_4.3.axf] Error 1

make: Target `all' not remade because of errors.

 

15:44:57 Build Finished (took 5s.932ms)

 

The same code compiles with no issues in Code Red Red Suite 5.

The headers have been set to, Newlib(semi host). The same error occurs when it is set to Newlib(nohost) as well

pastedImage_1.png

Thanks

0 Kudos

55 Views
Contributor II

I was able to take care of the Undefined references by unchecking the Manager Linker Script box. When I did that, I was able to compile the code. However my hex file turned out to be only 1KB,  On the other hand, when compiled using Red Suite, it was around 1000KB. I am not sure if It was compiled correctly. 

Please advise

0 Kudos

55 Views
Contributor II

pastedImage_1.png

0 Kudos

55 Views
Senior Contributor III

You must either use Manage Linker Script (in which case MCUXpresso will do the hard work for you) or you can provide your OWN linker script (in which case YOU do the hard work). The picture you have provided shows that you have elected to supply your own linker script, but have not provided one, so NOTHING has been linked into your application - which is why you get no errors!

So, re-check "Manage Linker Script" Then you need to find where you missing functions are defined (such as getPM etc) and make sure they are linked in to your application. 

55 Views
Contributor II

Hello Con Verse,

I understand what you are talking about, but as I mentioned, I am new to this environment. How do I link them? When I compiled the same code using Code Red, Red Suite 5. I was able to get the .axf file . What changed in LPC Xpresso? I would appreciate any guidance and suggestions. I am running on fumes


Regards


Ravi

0 Kudos

55 Views
Senior Contributor III

Please post your Build Log showing the command line and errors

0 Kudos