简体   繁体   中英

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?

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

在“设置”下,您可以选择性地关闭它报告的错误以及它们如何显示错误。

1 ]

  • Windows-->preferences-->type "anno" you will find annotation
  • Navigate(scroll) to warning section , uncheck vertical ruler and rest if you wish

other method

  • 2] go to project explorer right click any project you wish to disable/turn off warnings or such
  • --->properties ---> c/c++ settings-->tool settings--->search your compiler c or C++ and ---> navigate to warning section----uncheck all (/any checked) ------> build project and Voila warnings gone :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM