Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make eclipse CDT ignore errors?

I'm having a lot of parser errors from eclipse but I don't have these errors when I compile the code. How can I ignore them?

like image 497
Thuener Avatar asked Jul 18 '12 17:07

Thuener


People also ask

How to ignore errors in Eclipse?

It isn't obvious on how to use the eclipse compiler to ignore errors. i.e. Go to Settings > Compiler > Java Compiler, use the Eclipse compiler and specify "-proceedOnError" as a command line parameter.

Does Eclipse CDT come with compiler?

Unfortunately Eclipse only provides the Integrated Development Environment (IDE) but it is missing the actual compiler. To install a compiler, please follow the instructions for your operating system.


1 Answers

In the Indigo version of the CDT:

Project Settings -> C/C++ General -> Code Analysis

You can enable/disable specific errors and warnings, as well as customize inclusion and exclusion patterns for those warnings.

If you get a large number of "Type 'TYPE' could not be resolved" errors, perhaps you need to make sure Eclipse can find all your code and libraries. You might want to check:

C/C++ General -> Paths and Symbols

like image 195
Soverman Avatar answered Sep 28 '22 01:09

Soverman