Closed
Description
Currently, the meson build under windows does not generate .lib
files for MSVC and therefore the testrunner fails to link against the library.
Steps to reproduce:
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
meson build .
cd build
ninja
This is the output (sorry, it is in german):
ninja
[3/10] Compiling C++ object jsoncpp@sha/src_lib_json_json_writer.cpp.obj.
../src/lib_json/json_writer.cpp(48): warning C4005: "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES": Makro-Neudefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt.h(425): note: Siehe vorherige Definition von "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES"
[4/10] Compiling C++ object jsoncpp@sha/src_lib_json_json_reader.cpp.obj.
../src/lib_json/json_reader.cpp(36): warning C4005: "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES": Makro-Neudefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt.h(425): note: Siehe vorherige Definition von "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES"
[8/10] Linking target jsontestrunner.exe.
FAILED: jsontestrunner.exe
link @jsontestrunner.exe.rsp
LINK : fatal error LNK1181: Eingabedatei "jsoncpp.lib" kann nicht ge÷ffnet werden.
[9/10] Compiling C++ object jsoncpp_test@exe/src_test_lib_json_main.cpp.obj.
ninja: build stopped: subcommand failed.
Metadata
Metadata
Assignees
Labels
No labels