"sources.mk" not updated after import existed directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"sources.mk" not updated after import existed directory

Jump to solution
1,216 Views
jack_zmh
Contributor II

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 Kudos
1 Solution
1,119 Views
jack_zmh
Contributor II

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

View solution in original post

1 Reply
1,120 Views
jack_zmh
Contributor II

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