Error complie CLion C++ project with cmake on windows NMAKE : fatal error U1077: cmake.exe : return code '0xffffffff' NMAKE : fatal error U1077: nmake.exe : return code '0x2'
Completed
Error complie CLion C++ project with cmake on windows
NMAKE : fatal error U1077: cmake.exe : return code '0xffffffff'
NMAKE : fatal error U1077: nmake.exe : return code '0x2'
I don't know why this error occurs, but after testing this error only occurs when running cmake with clion, it doesn't occur manually.
clion's cmake configuration is the default, I also reloaded the project but it didn't work.
Does anyone know why? Thank for your help!.
Please sign in to leave a comment.
ok, sorry guys my settings in Clion Toolschains MSCV is was set to x86, i change to amd64, then it compile normal
i do the same by changing x86 to amd64 and still have the same problem
NMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion 2021.1.2\bin\cmake\win\bin\cmake.exe"' : return code '0xffffffff'
Moataz Noaman12 you have "error LNK2019: unresolved external symbol", please see https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019 for more information. Probably you didn't link the necessary library (https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#link-libs).