From b421c2477c4c4f9d4c93997661f1698812cdae36 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 21 Nov 2011 11:02:26 -0500 Subject: [PATCH] KWIML: Avoid MSVC linker warning about not using C++ runtime Teach KWIML_test to use part of the C++ runtime library. Otherwise the linker complains: warning LNK4089: all references to 'MSVCP71.dll' discarded by /OPT:REF --- test/test_include_CXX.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_include_CXX.cxx b/test/test_include_CXX.cxx index 057b7c21c..111311a84 100644 --- a/test/test_include_CXX.cxx +++ b/test/test_include_CXX.cxx @@ -11,6 +11,12 @@ ============================================================================*/ #include +#if defined(_MSC_VER) && defined(NDEBUG) +// Use C++ runtime to avoid linker warning: +// warning LNK4089: all references to 'MSVCP71.dll' discarded by /OPT:REF +std::string test_include_CXX_use_stl_string; +#endif + /* Test KWIML header inclusion after above system headers. */ #include "test.h" #include KWIML_HEADER(ABI.h)