Linker error

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

Linker error

806 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kees Jansen on Thu Aug 05 05:48:23 MST 2010
Dear alll,

I made a new workbench with LPXxpresso according the "Getting Started" document. The workbench consist of the CMSISv1p30_LPC11xx project and a new own project. My own project uses the CMSISv1p30_LPC11xx . I received the following message after compiling/making

[SIZE=2][LEFT]c:/nxp/lpcxpresso_3.4/tools/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lCMSISv1p30_LPC11xx
collect2: ld returned 1 exit status[/LEFT]
make: *** [LPC11xxMicroCoreI2cBlinky.c.axf] Error 1

I compared the workbench with a similar workbench that can be compiled and made. I did not find differences in the properties of the projects (other than names)

Does anybody know what I have to do to get rid of the error.
What kind of file does the ld.exe want? Where can I tell him that in LPCxpresso?

Hoping somebody can help me,

Kees.
[/SIZE]
0 Kudos
Reply
3 Replies

791 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Aug 05 09:15:36 MST 2010
That will because your project name is "MicroCoreI2CBlinky.c" (or at leaast, that was the name of the project when your created it). If you want to change the name of your "build artifact",
Project->Properties,
C/C++ Build
Settings
Click the "Build artifact" tab
change the Build artifact name to whatever you want. That will affect the .axf and the .map (and anything else that uses the BuildArtifactBaseName).
0 Kudos
Reply

791 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kees Jansen on Thu Aug 05 07:17:57 MST 2010
Thanks for the (fast)  reply. Indeed the path to the library was wrong. :)Was great help to know that *.a is the library extension. My mistake was the interpretation of the "workbench" button. You have to define the whole path in the workbench directory too Not pointing to the workbench directory itself.

The debugger however is not working .:( I see some mistakes in the command lines
MicroCoreI2CBlinky files are MicroCoreI2CBlinky.c.axf and MicroCoreI2CBlinky.c.map . That's wrong to my opinion. It should be
MicroCoreI2CBlinky.axf  and MicroCoreI2CBlinky.map.
Is there a possiblilty to correct that in LPCXpresso?

Hoping you can help,
Kees
0 Kudos
Reply

792 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Aug 05 06:06:35 MST 2010
A few suggestions:
- have you set up the Library paths in the linker, so that it can find the Library? It will need to reference ${workspace_loc:[SIZE=2]CMSISv1p30_LPC11xx/Debug} or [/SIZE]${workspace_loc:[SIZE=2]CMSISv1p30_LPC11xx/Release} depending own whather you want a debug or release build
- Is the library actually built in that location? It will be looking for a file called lib[/SIZE][SIZE=2]CMSISv1p30_LPC11xx.a[/SIZE]
0 Kudos
Reply