<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Sorry, I didn't finish the message.</DIV>
<DIV>So, here are the libs which make the app work with MSVC:</DIV>
<DIV> libboost_thread-vc-mt.lib</DIV>
<DIV> libboost_filesystem-vc-mt.lib</DIV>
<DIV> libboost_date_tim-vc-mt.lib</DIV>
<DIV> libboost_program_options-vc-mt.lib</DIV>
<DIV> libboost_regex-vc-mt.lib</DIV>
<DIV> </DIV>
<DIV>And from building libs with MinGW I got:</DIV>
<DIV> libboost_thread-mt.a</DIV>
<DIV> libboost_filesystem-mt.a</DIV>
<DIV> libboost_date_tim-mt.a</DIV>
<DIV> libboost_program_options-mt.a</DIV>
<DIV> libboost_regex-mt.a</DIV>
<DIV> </DIV>
<DIV>I put it as argument of TARGET_LIKN_LIBRARIES() , but the link still fails.<BR><BR>--- En date de : <B>Mer 10.12.08, David Cole <I><david.cole@kitware.com></I></B> a écrit :<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: David Cole <david.cole@kitware.com><BR>Objet: Re: [CMake] Fw : Linking boost failure<BR>À: ngondorolf@yahoo.fr<BR>Cc: cmake@cmake.org<BR>Date: Mercredi 10 Décembre 2008, 15h29<BR><BR>
<DIV id=yiv1755342784>target_link_libraries is a cmake command. It works everywhere and is portable everywhere there's a cmake...<BR><BR>
<DIV>You should definitely rely on target_link_libraries rather than pragmas in header files to pull in necessary libraries for linking.</DIV>
<DIV><BR></DIV>
<DIV><BR>
<DIV class=gmail_quote>On Wed, Dec 10, 2008 at 5:39 AM, kafou nmento <SPAN dir=ltr><<A href="mailto:ngondorolf@yahoo.fr" target=_blank rel=nofollow>ngondorolf@yahoo.fr</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>I want to add an information. I intend to switch on Mac OS so I have to use only portable tools.</DIV>
<DIV> </DIV>
<DIV>Thanks again<BR></DIV>
<DIV><BR>--- En date de : <B>Mar 9.12.08, kafou nmento <I><<A href="mailto:ngondorolf@yahoo.fr" target=_blank rel=nofollow>ngondorolf@yahoo.fr</A>></I></B> a écrit :<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: kafou nmento <<A href="mailto:ngondorolf@yahoo.fr" target=_blank rel=nofollow>ngondorolf@yahoo.fr</A>><BR>Objet: [CMake] Linking boost failure<BR>À: <A href="mailto:cmake@cmake.org" target=_blank rel=nofollow>cmake@cmake.org</A><BR>Date: Mardi 9 Décembre 2008, 18h09<BR><BR>
<DIV>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV class=Ih2E3d>
<DIV>Hi all!</DIV>
<DIV>I'm compiling a Qt based libtorrent app with CMake using MinGW generator. For those not knowing libtorrent, it is a lib fully boost based. (boost version used 1.34.1).</DIV>
<DIV>100% of the build goes well. But at the linking it fails with errors like "undefined reference to boost::....". The most recurrent is boost::mutex related.</DIV>
<DIV>I'm on Windows XP.</DIV>
<DIV>The same app works fine with MSVC 2008. I used for both Visual and CMake the same libs and preprocessor definition.</DIV>
<DIV> </DIV>
<DIV>If some one can help me (^_^)</DIV>
<DIV> </DIV></DIV>
<DIV class=Ih2E3d>
<DIV>Thanks to all in advance.</DIV></DIV></TD></TR></TBODY></TABLE><BR></DIV>
<DIV class=Ih2E3d><PRE>_______________________________________________
CMake mailing list
<A href="mailto:CMake@cmake.org" target=_blank rel=nofollow>CMake@cmake.org</A>
<A href="http://www.cmake.org/mailman/listinfo/cmake" target=_blank rel=nofollow>http://www.cmake.org/mailman/listinfo/cmake</A></PRE></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR><BR>_______________________________________________<BR>CMake mailing list<BR><A href="mailto:CMake@cmake.org" target=_blank rel=nofollow>CMake@cmake.org</A><BR><A href="http://www.cmake.org/mailman/listinfo/cmake" target=_blank rel=nofollow>http://www.cmake.org/mailman/listinfo/cmake</A><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></td></tr></table><br>