Fail to recognize library after using the manual connection method

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fail to recognize library after using the manual connection method

1,366 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rithus on Tue Apr 01 01:33:48 MST 2014

Hi,

I have tried to connect the lib of the online open source USB how ever there is still this prompt coming out of the lpc may i know if any one have encounter similar problem or solution to this?

Thanks in advance!


**** Build of configuration Debug for project ee ****

make all
Building target: demo.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\Users\HW\Desktop\new workspace\Lib_CMSISv1p30_LPC17xx\Debug" -L"C:\Users\HW\Desktop\new workspace\Lib_EaBaseBoard\Debug" -L"C:\Users\HW\Desktop\new workspace\Lib_MCU\Debug" -L"C:\Users\HW\Desktop\new workspace\RDB1768cmsis2_usb_serial\Debug" -L"C:\Users\HW\Desktop\new workspace\RDB1768cmsis_usbstack\Debug" -Xlinker --gc-sections -Xlinker -Map=demo.map -mcpu=cortex-m3 -mthumb -T "ee3032trial_Debug.ld" -o"demo.axf"  ./src/cr_startup_lpc17.o ./src/main.o   -lCMSISv1p30_LPC17xx -lRDB1768cmsis_usbstack -lRDB1768cmsis2_usb_serial -lLib_EaBaseBoard -lLib_MCU
c:/nxp/lpcxpresso_3.6.3_317/tools/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lRDB1768cmsis2_usb_serial
collect2: ld returned 1 exit status
make: *** [demo.axf] Error 1
0 Kudos
Reply
5 Replies

1,349 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Wed Apr 02 02:01:31 MST 2014

Quote: Rithus
i have follow the step found in http://www.support.code-red-tech.com/CodeRedWiki/LibraryProjects however the problem still prompt to exsist



Did you Build the library? Look in your Library/Debug and Library/Release Folder...

If the library file has been created, your project settings to include this library are wrong...

A smarter way to add a Lib is to use 'Smart update'.

Unfortunately this requires a liblinks.xml file (which is missing in older projects).

I've added a demo below, just change lib-name in it, rename it to liblinks.xml and 'Smart update' is working.

See: http://www.lpcware.com/content/faq/lpcxpresso/creating-linking-library-projects





0 Kudos
Reply

1,349 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Apr 02 00:18:05 MST 2014
Try this FAQ
http://www.lpcware.com/content/faq/lpcxpresso/linker-cannot-find-library
0 Kudos
Reply

1,349 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rithus on Tue Apr 01 23:58:06 MST 2014
Hi, thanks for your fast reply..

i have tried to include the library using the manual method however it still have that prompt every time. I guess i might miss out on one of the library linker. Is there a way to check if i have link it correctly?

i have follow the step found in http://www.support.code-red-tech.com/CodeRedWiki/LibraryProjects however the problem still prompt to exsist

0 Kudos
Reply

1,349 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Apr 01 02:24:24 MST 2014
It looks like you are using a very very old version of LPCXpresso - v3.6.3. which was released about 3 years ago. Please upgrade to LPCXpresso v7
0 Kudos
Reply

1,349 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Tue Apr 01 02:02:21 MST 2014

Quote: Rithus
c:/nxp/lpcxpresso_3.6.3_317/tools/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-none-eabi/bin/ld.exe: [color=#f00]cannot find -lRDB1768cmsis2_usb_serial[/color]
collect2: ld returned 1 exit status
make: *** [demo.axf] Error 1



Your linker is missing this Lib  :O

Either your library path setting is wrong or you have forgotten to build  this Lib...
0 Kudos
Reply