Error During Release Build

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

Error During Release Build

303 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ub3r on Wed Feb 22 20:38:46 MST 2012
Hi Guys,
During a debug biuld everything compiles fine, however when i set the build to Release i get this:


cannot find -lCMSISv1p30_LPC13xxAPD C/C++ Problem



Also, Whats the difference between the release and debug??

Cheers
0 Kudos
3 Replies

290 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Feb 23 05:22:02 MST 2012

Quote: ub3r
Hi Guys,
During a debug biuld everything compiles fine, however when i set the build to Release i get this:


cannot find -lCMSISv1p30_LPC13xx    APD             C/C++ Problem
Also, Whats the difference between the release and debug??

Cheers



A few FAQs that you may find useful...

http://support.code-red-tech.com/CodeRedWiki/CannotFindLinkerError
http://support.code-red-tech.com/CodeRedWiki/BuildConfigMultipleProjs
http://support.code-red-tech.com/CodeRedWiki/CompilerOptimization

Regards,
CodeRedSupport
0 Kudos

290 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Feb 22 23:43:14 MST 2012
That's a linker error message. It's complaining because it can't find CMSISv1p30_LPC13xx library.

Did you compile CMSISv1p30_LPC13xx in Release mode and is it opened?

Also a wrong setting in[INDENT]Properties -> C/C++ Build -> Settings -> Tool Settings -> MCU Linker -> Libraries
[/INDENT]is possible.

Debug and release mode are different settings to ensure correct settings for debugging (no optimization) and for release (optimization) :)

So check your settings (like symbols, includes, libraries...) for both configurations...

Also all included libraries has to be compiled in same mode before.
0 Kudos

290 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by js-nxp on Wed Feb 22 23:33:39 MST 2012
One of the difference is that by default the release build has the optimisation set at -Os while the debug has it set at -O0.

So it is likely that code will be "optimised" (I love that word) away if the compiler thinks that the code is useless. :D

In your case it seems that it cannot find the CMSIS. Are you really using v1.30 or the newer V2.0 in your project?

Maybe of not much help, I'm still trying to find my way with NXP chips. Anything for a fellow Sydney sider.  :)
0 Kudos