LPCXpresso Base Board Sample Link Errors (for reference)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPCXpresso Base Board Sample Link Errors (for reference)

703件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IntStarFoo on Sat Oct 20 14:48:43 MST 2012
Hi All,

First, thanks to everyone for all of the help.  I work with LPCXpresso and embedded programming as a hobby, so my knowledge is quite limited.  This forum has been a great help for me and I appreciate everyone’s participation.  Having said that, I thought I’d share something I have learned that might save someone some time…

I have been working through some examples on the Embedded Artists Baseboard using libraries CMSIS, Lib_MCU and Lib_EaBaseBoard.  I decided that I wanted to upgrade some of the examples from CMSIS 1 to CMSIS 2.  As I did this, I ran into some Linker issues. 
If you see something like:  “undefined reference to `GPIO_SetDir'” … and you know it exists, check the order in which the libraries are linked in your configuration.

Order matters!  Check your build output just above the linker error…

BAD :confused::  -lLib_MCU -lLib_EaBaseBoard -lCMSISv2p00_LPC17xx

GOOD :): -lLib_EaBaseBoard -lLib_MCU -lCMSISv2p00_LPC17xx

You can check/change this library link order in the LPCXpresso IDE under Project->Properties->Paths and Symbols->C/C++ General->Libraries (Tab)

Thanks Again,
IntStarFoo
0 件の賞賛
返信
2 返答(返信)

689件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by AlhaythamElhassan on Sat Apr 30 19:43:36 MST 2016
thanks a lot man you save my life yes that is absolutely right order matter. :) 
0 件の賞賛
返信

689件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frame on Sun Oct 21 09:40:00 MST 2012
You may try instead to put this libs inbetween [B]--start-group ... [/B][B]--end-group[/B].
This will search this libs repeatedly, and not only once, for unresolved references.
0 件の賞賛
返信