yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

how to compile on windows x64

Open jianghe01 opened this issue 7 years ago • 2 comments
trafficstars

i use cmake to configure and generate a vs 2017 project. than i compile the project x64 but many errors : "Error C2220 warning treated as error - no 'object' file generated", "The command "setlocal", "Error LNK1104 cannot open file 'gtest-1.8.0\googlemock\Debug\gmock.lib'". anyone know how to do?

jianghe01 avatar Jul 10 '18 14:07 jianghe01

Try defining gtest_disable_pthreads to ON when your configure your CMake build.

Better yet, see #566.

webbnh avatar Jul 23 '18 20:07 webbnh

On windows, yaml-cpp compiles inside program files (x86) folder. Run visual studio with admin privileges and then build install. It solved the setlocal error for me. P.S this solution only solves the setlocal error. I excluded the build test in cmake gui configuration.

abdulwahabamin avatar Jan 27 '21 17:01 abdulwahabamin