Include paths not reflected in makefile [message #1765728] |
Tue, 13 June 2017 18:02  |
Eclipse User |
|
|
|
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 12:57] by Moderator
|
|
|
|
|
|
Re: Include paths not reflected in makefile [message #1766476 is a reply to message #1765996] |
Wed, 21 June 2017 17:34  |
Eclipse User |
|
|
|
Another clarification (I edited my original post to try to make this a little clearer) but I have only included additional .c and .h files from a different file system location as linked resources (and not an entire project, just a couple of files from a repo I have cloned). I would like the build settings in the Project>Properties that I apply to the whole project to be applied to the build of these files as well.
I tried to play around with the Entries/Provider tabs but I'm not fully sure I understand how they are affecting my project. I have found that going into my .cproject file and deleting the new <folderInfo> completely and then cleaning and rebuilding the project seems to have fixed the problem and forces the project build settings to be applied to the new files I added as well.
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds