I’m having some problems to configure eclipse with the boost library. Actually my code compile without problems, but eclipse marks me some errors that the compiler does not.
I’ve added the path of the boost library in the includes of “paths and symbols” settings, and in fact eclipse recognizes the boost namespace, but I got several errors: for example
vector spanning_tree;
it reports as an invalid template arguments. Does anyone had my same problem?
I’m using the last version of eclipse and OS X as operating system.
Thank you
Although I haven’t seen this particular problem, I know that in general, Eclipse CDT isn’t quite as good as a full-fledged C++ compiler, and so it’s not guaranteed to get every aspect of C++ correct.
Making sure that you’re running the latest version of the Eclipse CDT is a good idea.
If you are running the latest version, then the Eclipse CDT developers would probably appreciate if it you report this as a bug.
As a last resort, you can disable the incorrect warnings (under Window, Preferences, C/C++, Code Analysis).