"sources.mk" not updated after import existed directory

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

"sources.mk" not updated after import existed directory

跳至解决方案
2,311 次查看
jack_zmh
Contributor III

Hello, I started a project from an imported SDK example with MCUXpresso V10.3. It was been built successfully before I added exist source files. After adding some exist source files in to the project by Import-->Files System, I meet the problem "undefined reference to xxx". I have added referred directory in "Include paths". I checked "sources.mk", in the SUBDIRS section, the referred directory named "CANopen" isn't included. How can I  manage this?

1.JPG

2.JPG

0 项奖励
回复
1 解答
2,214 次查看
jack_zmh
Contributor III

I have solved this problem by converting "folder" to "source folder" after search on google.

"In order to do this in Eclipse, you should get in your project's properties, then expand C/C++ general -> Paths and Symbols -> Sources tab. Then click the Add Folder button, and choose the normal folders you wish to include as "source folders."

在原帖中查看解决方案

1 回复
2,215 次查看
jack_zmh
Contributor III

I have solved this problem by converting "folder" to "source folder" after search on google.

"In order to do this in Eclipse, you should get in your project's properties, then expand C/C++ general -> Paths and Symbols -> Sources tab. Then click the Add Folder button, and choose the normal folders you wish to include as "source folders."