简体   繁体   中英

Unnecessary imports in Eclipse CDT

I converted from GCC 3.4.2 to 4.8.1 but my projects in Eclipse still leave the imports, and those imports also show as warnings in the source code. I can't find any way to remove them manually and those folders don't exist on the filesystem. How do I fix this?

Here is an illustration: http://i.imgur.com/dSejoWs.jpg

Goto Project 'Properties->C++ General->Path & Symbols Includes' Tab and remove those path entries there, respectively change them to your new installation paths.

Another place to look might be 'Properties->C++ General->Preprocessor Include Pathes' , if there are project specific entries for these pathes.

I fixed it by deleting the .metadata folder in the workspace directory and reimporting the project. I had to reconfigure Eclipse but at least it works now. Thanks for the suggestions.

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