Mark Paulino
Mark Paulino

Reputation: 113

MinGW GCC and G++ Errors in Eclipse

I'm new to this community and this is my first question. I know many people had had this problem before, but, it seems as if people solved it their own ways and I tried all the solutions I could find in google (and here, respectively), but none of them seem to work for me like it was supposed to. And just to make it clear, I use 32-bit Windows XP. Some versions that may work in 64-bit or newer operating systems may not work on mine.


So I'm very new to C and C++, I started by installing the Eclipse CDT, the moment I found out it did not have a compiler was when I installed MinGW which was bundled with a C compiler, a C++ compiler, and the MinGW Developer's Toolkit (which included MinSys). So after that, I started by creating a new empty C++ project called 'HyScript'. And did these:

  1. I set the environment variables as:

    C:\Program Files\Java\jre7\bin;E:\Mark\MinGW\msys\1.0\bin;E:\Mark\MinGW\bin

  2. Then, I restarted eclipse, deleted the old projects, and created a new one with the same name (deleted the old folders) and chose the toolchair, "Cross GCC".

  3. Now I haven't even started writing code, but there are already 4 errors: Here's the link to the dropbox file

  4. The last thing I did was open up the CMD before going here, and this happened: Here's another link to the dropbox file

I don't understand anymore... What did I do wrong? I set the environment variables right, I supposed. And, after doing some research, I still can't find a proper solution for me. It's been two days now, and this error still hasn't gone away.

Upvotes: 1

Views: 737

Answers (1)

Panagiotis Georgiadis
Panagiotis Georgiadis

Reputation: 240

You chose wrong toolchair "Cross GCC". Please select "MinGW"

The latest version of G++ can be found here. Please do NOT install it in the default directory but use this:

C:\MinGW

If you still have problems, uninstall everything you did, and watch these video instructions.

Upvotes: 1

Related Questions