LPC1114/333 error when making release build

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC1114/333 error when making release build

跳至解决方案
5,343 次查看
tyassin1
Contributor II

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

0 项奖励
回复
1 解答
5,329 次查看
frank_m
Senior Contributor III

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.

在原帖中查看解决方案

7 回复数
5,315 次查看
tyassin1
Contributor II

Hello,

Yes now it works.
The missing point was the creation of the missing folder "Release" with the file "libCMSIS_CORE_LPC11xx" added in the folder.

Thank you very much to both of you.

0 项奖励
回复
5,332 次查看
tyassin1
Contributor II

Hi,

I have attached a screendumb of the two different settings.
I hope it is the right placed I have looked?

0 项奖励
回复
5,330 次查看
frank_m
Senior Contributor III

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.

5,329 次查看
ErichStyger
Specialist I

In your release build settings, you point to a the library in a folder named 'Release': have you built that library in that Release folder?

0 项奖励
回复
5,326 次查看
frank_m
Senior Contributor III

That would explain it - it is part of the workspace, and must be built separately.

0 项奖励
回复
5,324 次查看
ErichStyger
Specialist I

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

5,335 次查看
frank_m
Senior Contributor III

> .../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.

标记 (1)
0 项奖励
回复