From d2b8229d02ff7362f36674ab3470f11aea13088e Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 3 Sep 2015 09:34:47 -0400 Subject: [PATCH] Tests: Fix Plugin test on Watcom compiler The Watcom compiler does not have stream operators for std::string. Since KWSys no longer provides the operators for us, just use c_str() to avoid the problem and allow the test to compile on Watcom. --- Tests/Plugin/src/example_exe.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Plugin/src/example_exe.cxx b/Tests/Plugin/src/example_exe.cxx index bc4b03ebc..12d92041a 100644 --- a/Tests/Plugin/src/example_exe.cxx +++ b/Tests/Plugin/src/example_exe.cxx @@ -32,7 +32,7 @@ int main() if(!handle) { std::cerr << "Could not open plugin \"" - << libName << "\"!" << std::endl; + << libName.c_str() << "\"!" << std::endl; return 1; } kwsys::DynamicLoader::SymbolPointer sym =