There is an error happened while compiling my codes with CMAKE.By the way, i was working on windows system.
The detail information is
“Check for working CXX compiler: D:/mingw/bin/c++.exe --broken”
This error has never happened before , but this week happened serval times.
I can neithor figure out how to solve this nor why this error happens.
T_T
This is likely happening because you are using a generator which is not Visual Studio <number> <year>
in an environment that doesn’t know about the toolchain of Visual Studio. To solve this, either:
- use a
Visual Studio <number> <year>
generator (for instanceVisual Studio 16 2019
), by passing the-G
command line argument tocmake
- execute CMake in an environment that knows about the Visual Studio toolchain, for instance the “x64 Native Tools Command Prompt for VS 2019”
I hope this helps!
Thanks a lot!I’d like to take the advise~