Include paths not reflected in makefile [message #1765728] |
Tue, 13 June 2017 22:02 |
Lex Nox Messages: 3 Registered: June 2017 |
Junior Member |
|
|
I am using STM's System Workbench version 2.0.0.
I have noticed that when I edit the include paths (Project Properties>C/C++ General>Paths and Symbols>GNU C>Edit), am able to add include paths that resolve and show up in the GUI under the includes expansion.
My include path changes can also be seen in Project Properites>C/C++ Build>Settings>Includes.
I have "Generate Makefiles automatically" checked, but even after doing a clean/deleting the Debug file where makefiles & outputs are placed, I can see that the makefile does not update to add my include paths, and I get a build error ("No such file or directory") because the newly added include path is not used.
Has anyone had this problem before, and how did you solve it? Or is there a way to look at how Eclipse auto-generates it's makefiles to figure out where the discrepancy between the GUI-provided includes and the ones that make it into the makefile is coming from?
Thank you!
******************
EDIT: The build error was coming from .c and .h files in another folder on my file system that I have added to the project as "Linked Resources". I have noticed that in the .cproject file, a new <folderInfo> entry is created for my linked resources, and that my changes to the include paths (or any other build setting) are not propagated to this other <folderInfo>'s properties. Is there a way to cause updates to an include path to apply to all <folderInfo .... resourcePath> values in the project? Or to edit these without hacking the cproject?
[Updated on: Wed, 21 June 2017 16:57] Report message to a moderator
|
|
|
|
|
Re: Include paths not reflected in makefile [message #1765996 is a reply to message #1765978] |
Wed, 14 June 2017 17:39 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Directories exported from other projects should show up in
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries tab --> Exported Entries[ from Referenced Projects
If changes to linked projects aren't there you may need to turn on the Provider for exported entries
or, if already enabled, toggle it off then on again
or you could try refreshing the current project in Project Explorer
or rebuilding the index with Project --> C/C++ Index --> Rebuild
or all of the above.
Other than that, you may have uncovered a bug but work will need to be done to narrow down the cause.
[Updated on: Wed, 14 June 2017 22:03] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03583 seconds