Content originally posted in LPCWare by AHeng on Tue Apr 26 08:50:02 MST 2011
Hi all,
I am trying to build in Release mode and get the following error:
"cannot find -lCMSISv1p30_LPC11xx"
In the project properties MCU Linker/Libraries I have "${workspace_loc:/CMSISv1p30_LPC11xx/Release}" for my search path and "CMSISv1p30_LPC11xx" for the library, however in the Linker Options the path is clearly missing from -L"":
-nostdlib -L"" -Xlinker -Map=TestProject11xx.map -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "TestProject11xx_Release.ld"
When I compare this with the Debug mode, Linker options shows the proper search path:
-nostdlib -L"G:\LPCXpresso\workspace.11xx\CMSISv1p30_LPC11xx\Debug" -Xlinker -Map=TestProject11xx.map -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "TestProject11xx_Debug.ld"
I can build in Debug mode without any problems, optimization or not, but the Release mode always gives me the error and can't find the path I already added in the Linker Libraries.
Any tips or recommendations would be greatly appreciated!