ERROR: “Cygwin GCC” that is unsupported on this sy

2019-08-13 18:45发布

问题:

I am trying to create my first C++ exeecutable using Eclipse IDE (using Windows 7). I am getting the following error while building.

How to correct it?

ERROR:: couldn't get context of main thread, error 998

Info: Configuration "Debug" uses tool-chain "Cygwin GCC" that is unsupported on this system, attempting to build anyway.

make all

'Building file: ../src/LestTest.cpp' [sig] C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe 1000 (0) call_handler: couldn't get context of main thread, error 998

Bash

Path Environment variable has the following

C:\cygwin\bin\

Please see the following screenshots from eclipse

回答1:

First of all, you do appear to have Cygwin installed, but it appears to be an ancient version. I suggest that you uninstall the version you have, download the setup program from here and install the current version. Be sure to select g++ to be installed.

UPDATE: On second thoughts, if you don't have a specific requirement to use Cygwin, it might be easier to use MinGW instead. Installation instructions are here.



回答2:

Make a test with "Bash" as mentioned in Error: Program "make" not found in PATH

Make sure that the Bash result is pointing to the location mentioned in Cygwin

Build the code - this result in a binary folder

Run the application