Hi,
I am trying to do a build in "release" mode. Everything works fine in "debug" mode.
I go "Project->Build configurations-> Set Active->Release"
When i try to build I get the following error:
c:/nxp/mcuxpressoide_11.6.1_8255/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.1.202207200623/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lCMSIS_CORE_LPC11xx
I use the package: CMSIS_CORE_LPC11xx which is included when making the project.
Any ideas?
Thank you
Thomas
已解决! 转到解答。
So far, yes.
These settings evaluate into paths / file names, the difference in this case is the ../Debug or ../Release subfolder.
Are these folders there, and are the specified libraries there ?
I don't have the LPC1114 or the SDK to check this myself.
However, there is no fundamental difference between the Debug and the Release build, except for the toolchains settings (compiler, linker, pre-/post build), which are configurable.
In case it is missing in the ../Release folder, you should be able to link against the other lib version.
So far, yes.
These settings evaluate into paths / file names, the difference in this case is the ../Debug or ../Release subfolder.
Are these folders there, and are the specified libraries there ?
I don't have the LPC1114 or the SDK to check this myself.
However, there is no fundamental difference between the Debug and the Release build, except for the toolchains settings (compiler, linker, pre-/post build), which are configurable.
In case it is missing in the ../Release folder, you should be able to link against the other lib version.
I wrote a while back an article about this subject, I hope this would be helpful:
https://mcuoneclipse.com/2017/09/19/managing-project-and-library-dependencies-with-eclipse-cdt/
Erich
> .../arm-none-eabi/bin/ld.exe: cannot find -lCMSIS_CORE_LPC11xx
The '-l' flag specifies an additional linker library.
A fixed prefix of "lib" and suffix of ".a" is assumed in this case, i.e. a file "libCMSIS_CORE_LPC11xx.a".
Not sure if that is correct.
I would compare it to the linker settings of the Debug build.