Boost C++ Libraries: Ticket #12741: Linker error in cross compiling with x86_64-w64-mingw32-g++ https://svn.boost.org/trac10/ticket/12741 <p> Using </p> <pre class="wiki">using gcc : i686 : i686-w64-mingw32-g++ ; using gcc : x86_64 : x86_64-w64-mingw32-g++ ; </pre><p> in tools/build/src/user-config.jam </p> <p> with x86_64-w64-mingw32-g++ (GCC) 5.3.1 20160211 and calling </p> <pre class="wiki">./b2 toolset=gcc-x86_64 address-model=64 link=shared --stagedir=x64 target-os=windows threading=multi threadapi=win32 variant=release --with-date_time --with-filesystem --with-graph --with-math --with-program_options --with-serialization --with-system --with-thread --with-timer </pre><p> gives linker errors </p> <pre class="wiki">gcc.link.dll bin.v2/libs/serialization/build/gcc-mingw-x86_64/release/target-os-windows/threadapi-win32/threading-multi/libboost_wserialization.dll.a bin.v2/libs/serialization/build/gcc-mingw-x86_64/release/target-os-windows/threadapi-win32/threading-multi/basic_text_wiprimitive.o:basic_text_wiprimitive.cpp:(.rdata$.refptr._ZTVN5boost7archive12codecvt_nullIwEE[.refptr._ZTVN5boost7archive12codecvt_nullIwEE]+0x0): undefined reference to `vtable for boost::archive::codecvt_null&lt;wchar_t&gt;' bin.v2/libs/serialization/build/gcc-mingw-x86_64/release/target-os-windows/threadapi-win32/threading-multi/xml_wiarchive.o:xml_wiarchive.cpp:(.rdata$.refptr._ZTVN5boost7archive6detail18utf8_codecvt_facetE[.refptr._ZTVN5boost7archive6detail18utf8_codecvt_facetE]+0x0): undefined reference to `vtable for boost::archive::detail::utf8_codecvt_facet' </pre><p> The 32bit version i686-w64-mingw32-g++ with toolset=gcc-i686 address-model=32 works. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12741 Trac 1.4.3 Robert Ramey Thu, 04 May 2017 16:31:12 GMT status changed https://svn.boost.org/trac10/ticket/12741#comment:1 https://svn.boost.org/trac10/ticket/12741#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I've got some issues with minnow regarding linking visibility. You can see this on the boost library testing matrix for the serialization library. Not having a windows machine, I've been unable to isolate and fix them. The same also goes for cygwin platform as they seem to be a hybrid of windows and posix machines. So before I'd get worked up about cross compiling, I'd first like to see just the regular tests build, link and run correctly on this platform. If that can be made to work, the issue you've raised my just go away on its own. So if you want to spend some effort on making the tests compile link and run for minnow I'd would much appreciate it. Note that b2 amounts to a one button test setup. To use this I also use my Library Test program and macro to generate a cool table with results across configurations. But that's likely just me. Anyway, thanks for reporting this. </p> Ticket zimmermann@… Thu, 31 Aug 2017 10:25:19 GMT <link>https://svn.boost.org/trac10/ticket/12741#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12741#comment:2</guid> <description> <p> Just for information: the problem is still present in 1.65.0 </p> <p> I'd like to spend some effort on helping, but I only have a Linux machine with cross compiler. Therefore I need advice what to do exactly. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>James E. King, III</dc:creator> <pubDate>Fri, 08 Sep 2017 14:53:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12741#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12741#comment:3</guid> <description> <p> Is this a duplicate of <a class="new ticket" href="https://svn.boost.org/trac10/ticket/12205" title="#12205: Bugs: FTBFS boost.serialization 1.61: undefined reference to ... (new)">#12205</a>? </p> </description> <category>Ticket</category> </item> </channel> </rss>