Well somehow I managed to compiled it with CXXFLAGS="-std=c++11 -stdlib=libc++" and linked libobjc (with Objective-C++ support) against libc++ (LLVM's C++11 standard library), that is I made a huge hump of libraries, libobjc2, libdispatch and LLVM's libc++ all linked together.
I always use libobjc2 in place of libBlocksRuntime hence libobjc2 and libdispatch always link against each other, and now libobjc2 links against libc++ too and since libc++ linked against libdispatch, that dragged libobjc2 in, and by doing that, clang is involved too by linking against libc++ and using C++11 features, so does lldb. What a mess... 在 2013-5-21,下午9:21,David Chisnall <[email protected]> 写道: > On 21 May 2013, at 12:16, Chan Maxthon <[email protected]> wrote: > >> When I tried to compile libobjc2 trunk or 1.7rc1 on Ubuntu server using >> clang 3.4 svn, clearly the objc++ part is calling for c++11 > > No, it isn't. It is written in C++98 and does not depend on any C++11 > features. It is for interoperability between Objective-C and C++ exceptions. > >> from its asking for c++abi library and c++11 headers > > It is not asking for any C++11 headers and will only build the libobjcxx.so > if it can not find the C++ ABI library and so must avoid linking to every > ObjC program to libstdc++. > > David > _______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
