C++ – eclipse cdt – editor doesn’t recognize functions included from static library

ceclipseeclipse-cdt

I created a static library which i'm including in another C++ eclipse cdt project.
Everything is compiled correctly once i change the build settings accordingly, but the editor still doesn't recognize the types which were declared in the static library, marking many red squiggly marks, etc.

Is there any way to make the eclipse editor search in the same places as the compiler? It is a very big visual nuisance to say the least.

Best Answer

I had a rather similar problem. The problem was that in a project, whenever I included a standard library, stdio.h for example, eclipse did not recognize any of the functions and macros defined there or could recognize some of them. To solve the problem, all I needed to do was to refresh the indexer. In order to refresh the indexer, right click on the project and select indexer->rebuild.

Related Topic