You are not logged in.
I haven't used Eclipse since January, so I'm not sure when this problem started. Before, everything worked normally, but now, when I try to write a program (I'm using C++), everything is underlined in red as if it were an error, but it runs fine. I think my problem is that in Properties > C++ General > Paths and Symbols, the GNU C++ has no include directories. I am wondering how to find out which directories I need to include; is there a way to search for them?
Thank you!
Offline
This happens when glibc is updated and Eclipse is still looking in the old directories (the include libraries are in directories by version number; see /usr/include/c++). It runs fine because the compiler knows where it's own libraries are. I fix it by going to Project > Properties > C/C++ Build > Discovery Options and hit "Clear discovered entries now". In addition to rediscovering your compiler, this will force Eclipse to rediscover all of the libraries next time you restart Eclipse, and this time it will find the right directories.
Last edited by sup (2013-06-21 12:58:39)
Offline
Thank you, that helped a lot! Everything works now, except I'm getting a warning about unresolved inclusions when I include things like iostream. Strangely, this is the only thing that doesn't work (well it works, but it gives a warning). Is there something additional I need to do, or should I just ignore this?
EDIT: Now, when I modify a file, everything immediately gets underlined and turned into errors, and I have to restart. What could be causing that?
Last edited by UnsolvedCypher (2013-06-21 13:58:14)
Offline
I have not found a solution to this. However, I have now switched to Code::Blocks, which in my opinion is a much better IDE. The details are very well thought out, and the small details really make it worth it. I recommend it to anyone programming in C++. I am not marking this thread as solved yet, as no solution has been found yet.
Offline