Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

moved my mingw installation - now eclipse cdt can't resolve the includes

I went to Project->Properties->C/C++ General->Paths and Symbols and indeed the paths are the ones of my old mingwin install. My question is : is there an easy way to tell eclipse to reset the toolchain - for the workspace not per project ? Of course when I installed the CDT having already mingwin in my PATH I did not configure anything manually and I'd like to avoid it now

Thanks

like image 802
Mr_and_Mrs_D Avatar asked Oct 22 '12 00:10

Mr_and_Mrs_D


People also ask

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.

Does Eclipse Need MinGW?

Step 3− ConfigurationYou do NOT need to do any configuration, as long as the Cygwin or MinGW binaries are included in the PATH environment variable. CDT searches the PATH to discover the C/C++ compilers. Your eclipse is now ready to run C++. In order to test it, open Eclipse.


1 Answers

Found an answer here. Go to Project > properties > C/C++ General > Paths and Symbols > GNU C++ - you will notice the paths point to old installation. Clear them in Project > properties > C/C++ Build > Discovery Options > GCC C++ Compiler and press the Clear button in the Automated discovery of paths and symbols box by the Clear discovered entries now label.

Rebuild your project.

Valid for Eclipse Juno.

If someone could explain how to do this not on a per project basis but for the whole workspace (the clean up of the settings) it would be much appreciated (and accepted). The paths are hardcoded in ${workspace_loc}\.metadata\.plugins\org.eclipse.cdt.make.core\<project_name>.sc files - the usual total epic mess with eclipse prefs being scattered all over the place - grr. Would the answer to my original question be to search and replace the paths there (and only there ?) ?

EDIT : Of note are the items in Project > Index menu - maybe a more appropriate way to do the same thing ?

like image 83
Mr_and_Mrs_D Avatar answered Sep 23 '22 21:09

Mr_and_Mrs_D