Search code examples
c++eclipseeclipse-cdteclipse-mars

Make eclipse CDT ignore errors on certain functions


I program C++ applications which heavily use external libraries which are installed on the remote machine, and not on my local machine where I develop the code.

Is it possible to ignore errors on specific functions/classes, while still having eclipse show errors/warning for the rest of the code?I'm thinking of a functionality similar to "Add to dictionary" in spell checkers.

I use eclipse Mars 4.5.0.


Solution

  • So I found a simple solution for this:

    I downloaded the header files (i.e. *.h files) from the remote machine where I have all the libraries installed. I put them all in a folder (named it external_libs), and then went to the

    project properties --> C/C++ General --> Path and Symbols --> Includes

    and added that directory to the include path. Then rebuild the index (right click on project --> index --> Rebuild), and done.