include inside include - strange behavour ! [message #1764232] |
Fri, 26 May 2017 21:54 |
ran shalit Messages: 10 Registered: January 2015 |
Junior Member |
|
|
Hello,
I have got some project package, which I imported in eclipse kepler (same version as was released) in windows 10.
But now I see strange beaviour:
1. the first build is OK
2. But on modifying some c file I get error on unresolved symbols.
though those symbols are declares in headers:
in the c file:
myheades.h just include other files:
#include <myheaders_1.h>
#include <myheaders_2.h>
....
If I just put the content of myheaders.h in the c file it compiles without issues:
#include <myheaders_1.h>
#include <myheaders_2.h>
....
Then it all compiles without issues !
I have no idea why it behaves like this.
Please help,
Ran
[Updated on: Fri, 26 May 2017 21:55] Report message to a moderator
|
|
|
|
Re: include inside include - strange behavour ! [message #1764503 is a reply to message #1764481] |
Tue, 30 May 2017 14:53 |
ran shalit Messages: 10 Registered: January 2015 |
Junior Member |
|
|
Hi Jonah !
Thanks for suggestions!
I am not sure I can create simple reproducible, but I did noticed that the "errors" are "not real", which means, the CDT builds the executable, it only shows errors in some strange cases:
1. for example it happens if I just open a file inside eclipse, it suddendly shows the "x" on the file, and in "problems" list the errors in the file.
I also saw errors in line of code as following, as if it is illegal:
var1 = var1
Yet, the code builds the image ! which means it is "fake error" (fake news...).
1. Is this what you mean by "Indexer errors" ? Is there a way to get rid of it ?
2. How can I discern between fake error to real error, is it by looking at the compile log window instead of the "problems" window ?
Thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03281 seconds