Subject: CGAL users discussion list
List archive
- From: dpo <>
- To:
- Subject: [cgal-discuss] Compilation fails in C++11 mode with Clang 425 on OSX
- Date: Wed, 12 Feb 2014 20:20:04 -0800 (PST)
Attempting to build CGAL 4.3 in C++11 mode with Clang 425 0.28 (shipped with Xcode 4.3 on OSX) results in the following error:
Scanning dependencies of target CGAL [ 50%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o Linking CXX shared library ../../lib/libCGAL.dylib Undefined symbols for architecture x86_64: "std::__1::basic_istream<char, std::__1::char_traits<char> >::operator>>(std::__1::basic_istream<char, std::__1::char_traits<char> >& (*)(std::__1::basic_istream<char, std::__1::char_traits<char> >&))", referenced from: CGAL::operator>>(std::__1::basic_istream<char, std::__1::char_traits<char> >&, CGAL::File_header_extended_OFF&) in all_files.cpp.o ld: symbol(s) not found for architecture x86_64
The complete CMake invocation is:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/cgal/4.3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/usr/local/lib -DWITH_CGAL_Qt3=OFF -DWITH_CGAL_Qt4=OFF -DWITH_CGAL_ImageIO=OFF .A user suggested the following patch, which resolves the problem:
diff --git a/src/CGAL/File_header_extended_OFF.cpp b/src/CGAL/File_header_extended_OFF.cpp index 3f709ff..f0e5bd3 100644 --- a/src/CGAL/File_header_extended_OFF.cpp +++ b/src/CGAL/File_header_extended_OFF.cpp @@ -186,7 +186,8 @@ std::istream& operator>>( std::istream& in, File_header_extended_OFF& h) { } in >> keyword; } - in >> skip_until_EOL >> skip_comment_OFF; + skip_until_EOL(in); + skip_comment_OFF(in); return in; } #undef CGAL_INThe error may be due to a bug in Clang 425 and appears to be resolved in Clang 500.
View this message in context: Compilation fails in C++11 mode with Clang 425 on OSX
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Compilation fails in C++11 mode with Clang 425 on OSX, dpo, 02/13/2014
Archive powered by MHonArc 2.6.18.