https://bugs.documentfoundation.org/show_bug.cgi?id=92868
Bug ID: 92868
Summary: test (importtest.cpp) fails to compile on OS X w/
clang (call to function operator<<)
Product: libvisio
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Mac OS X (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: General
Assignee: [email protected]
Reporter: [email protected]
On OS X 10.9/Xcode 6.2/libvisio-0.1.1, importtest.cpp fails to compile with
this error:
g++ -DHAVE_CONFIG_H -I. -I../.. -DTDOC=\"../../src/test/data\"
-I/sw/opt/boost-1_58/include -I/sw/include -I../../inc
-I/sw/include/librevenge-0.0 -I/sw/include/libxml2 -I/sw/include
-I/sw/include --std=c++0x -I/sw/include/librevenge-0.0 -I/sw/include
-DNDEBUG -g -O2 -fvisibility=hidden -DLIBVISIO_VISIBILITY -Wall -Wextra
-Wshadow -pedantic -MT test-importtest.o -MD -MP -MF .deps/test-importtest.Tpo
-c -o test-importtest.o `test -f 'importtest.cpp' || echo './'`importtest.cpp
In file included from importtest.cpp:13:
In file included from /sw/include/cppunit/extensions/HelperMacros.h:9:
In file included from /sw/include/cppunit/TestCaller.h:5:
In file included from /sw/include/cppunit/TestCase.h:6:
/sw/include/cppunit/TestAssert.h:49:13: error: call to function 'operator<<'
that is neither visible in the template definition nor found by
argument-dependent lookup
ost << x;
^
/sw/include/cppunit/TestAssert.h:101:50: note: in instantiation of member
function 'CppUnit::assertion_traits<librevenge::RVNGString>::toString'
requested here
Asserter::failNotEqual( assertion_traits<T>::toString(expected),
^
importtest.cpp:66:3: note: in instantiation of function template specialization
'CppUnit::assertEquals<librevenge::RVNGString>' requested here
CPPUNIT_ASSERT_EQUAL_MESSAGE(message.cstr(), expectedValue, actualValue);
^
/sw/include/cppunit/TestAssert.h:214:17: note: expanded from macro
'CPPUNIT_ASSERT_EQUAL_MESSAGE'
( CPPUNIT_NS::assertEquals( (expected), \
^
importtest.cpp:20:15: note: 'operator<<' should be declared prior to the call
site or in namespace 'librevenge'
std::ostream &operator <<(std::ostream &s, const librevenge::RVNGString
&string)
^
1 error generated.
Makefile:680: recipe for target 'test-importtest.o' failed
make[3]: *** [test-importtest.o] Error 1
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs