
Hi Paul, On Friday, 16. November 2012 16:29:53 Paul A. Bristow wrote:
Target: i686-w64-mingw32 Thread model: posix)
(This is Ruben's mingw64 build)
on Netbeans 7.2 on Windows 7.
The compilation stage goes OK
(but with many warnings
In file included from i:/boost-trunk/libs/test/src/test_tools.cpp:16: In file included from i:/boost-trunk\boost/test/impl/test_tools.ipp:23: i:/boost-trunk\boost/test/tree/test_unit.hpp:164:7: warning: 'dllexport' attribute only applies to variables and functions class BOOST_TEST_DECL master_test_suite_t : public test_suite {
No, the compilation is broken because clang does not support dllexport on classes as clearly mentioned above.
but the link stage to build the library fails with many
Cannot export boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_resul t const&, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...): symbol not found
(full output window message attached).
Right, no dllexport, no exported symbols. Please try a static build for now.
I have also failed to build using bjam (missing <cstddef> so missing the right stdlib?) and I wonder if both these are connected with lack of a suitable boost/config.hpp which caters for Clang *on this configuration*.
Can you build with b2?
Where would/should __clang__ be defined in order to select this compiler?
My user-config.jam contains (in an attempt to cure )
# Clang compiler using mingw32 dw2 Ruben's release. using clang
: 3.1 : "C:/mingw32-dw2/bin/clang++.exe" : <cxxflags>-v
<cxxflags>-std="c++11" <cflags>-nostdinc # Do not include MSVC C headers. #<cflag>-c-include-dirs=??? <cxxflags>-nostdinc++ # Do not include MSVC C++ headers. # Use mingw-dw2 for includes <cxxflags>-cxx-include-arch="C:/mingw32-dw2/i686-w64-mingw32" <cxxflags>-cxx-include-32bit-dir=32 <cxxflags>-cxx-include-root="C:/mingw32-dw2/include/c++/4.6.3" <cxxflags>-stdlib=libc++ #<compileflags>-std=gnu++11
#<define>BOOST_STDLIB_CONFIG="i:/boost-trunk/boost/config/stdlib/libstdcpp3 .hpp" <linkflags>-stdlib=libc++ ;
Any views on my woes?
Thanks for your config. I'll try to set up clang but this mght take a while. Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold@gmx.eu ! Germany