Saturday, November 15, 2008

Eclipse CDT: Clean out old lib references to remove invalid project path warnings.

I was removing some warnings before I committed some code, but there were two warnings that I could not remove. It happened to deal with "Invalid project path: Include path not found" not found, which is odd because the code compiled and ran just fine. As it turns out, there is a bug for it:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=206372

And in that post there is a fix for it as well under the second comment:

"To manually fix the file you need to move/delete the ${projectname}.sc file found under ${workspace}/.metadata/.plugins/org.eclipse.cdt.make.core"

2 comments:

paul said...

Hmmm. I never see these warning. Where should I be looking?

Redsaz said...

When I built the game from within Eclipse, in the package explorer, the package for my game had a small "warning icon" attached to it. Seeing that. Noticing that none of the warnings were marked in the code, I opened the Error Log view. It let me know that there were a couple paths that it couldn't find.

Looking at the first entry in the bug report, it looks like I built the game before an Ubuntu update changed my GCC goodness, and then built it again afterwords, with the errors here.

They are trivial warnings, but still annoying when you don't want to have that "warning icon" show up on your project.