Exclude (duplicate) header from project [message #1790807] |
Mon, 18 June 2018 09:08  |
Eclipse User |
|
|
|
Hi,
I'm facing a problem that i consider as a possible bug.
I'm currently working on an consequent project that i have divided in multiple git repositories.
for each sub-modules, i have a source directory (which i use in my overall project) and others like examples or tests.
When i integrate a sub-module in eclipse, i exclude from build all folders like "examples" "tests" "doc" etc.
I've got a typical file debug.h that is present in all my examples and my overall project.
The problem is when I include "debug.h", eclipse include a debug located in an excluded folder (and not present in my includes parameters) which is the wrong..
if I delete the file the project compile properly!
Here is the files in my project:

Any idea?
thanks!
Attachment: eclipse.png
(Size: 33.38KB, Downloaded 1830 times)
|
|
|
Re: Exclude (duplicate) header from project [message #1790845 is a reply to message #1790807] |
Mon, 18 June 2018 23:30   |
Eclipse User |
|
|
|
What do you mean by "Eclipse includes"?
Eclipse doesn't generally include anything.
It does read files to index them, though.
Is this what you mean?
I expect that wouldn't cause a compile issue.
Do you mean that the file is being included by the compiler during a build?
That would imply that a directory containing the examples is being relayed to the compiler.
Eclipse can only do this when creating a makefile.
And does so usually by using the -I compiler option.
These are set with the Tool Settings dialog
Project --> C/C++ Build --> Settings --> Tool Settings tab
or the dialog at Project --> C/C++ General --> Paths and Symbols --> Includes tab
When you "delete the file", which file is being deleted?
Can you be more specific about what you mean and post evidence of Eclipse doing it?
Say, a build log and whatever makes you think it is happening.
FWIW:
I modified an HelloWorld project with two header files differing only in content with one being hidden.
Then I built the project.
Only the non-hidden one was part of the build.
[Updated on: Mon, 18 June 2018 23:51] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03752 seconds