Can't find library file which exists

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

Can't find library file which exists

2,132 次查看
luke_ludington
Contributor II

I'm including a library which I know exists at the location I pointed to, but gcc is saying it cannot find it

Untitled.png

标签 (1)
标记 (2)
0 项奖励
2 回复数

1,952 次查看
BlackNight
NXP Employee
NXP Employee

Could you share the full commandline passed to the linker (you can copy it from the Console view)?

Your screenshot tells that it cannot find -l......, so it seems you have added a -l option with a file somehow, and it thinks it is a normal object file somehow. As for adding libraries: see Creating and using Libraries with ARM gcc and Eclipse | MCU on Eclipse  where you can add the -l option with the search path. Another consideration (which seems not to be the case in your case: if you have spaces in the path, you need to put the path into double quotes).

I hope this helps,

Erich

0 项奖励

1,952 次查看
nxf54945
NXP Employee
NXP Employee

Hello Luke,

I hope you are doing well.

MCUXpresso requires that you link the library’s path to the project properties. Here you will find a quick guide on how to do so: https://community.nxp.com/thread/388991

I hope this information helps. Do not hesitate to ask about any doubt or concern you have about your application.

 

Best regards,

Javier

0 项奖励