|
From: | Brad Pitcher |
Subject: | Re: [Mingw-cross-env-list] cmake unable to find boost_thread |
Date: | Fri, 27 May 2011 09:33:51 -0700 |
Well, the libs are located in ...
/mingw-cross-env/usr/i686-pc-mingw32/lib/libboost*
Specifically, boost_thread is named libboost_thread_win32-mt.a
Maybe cmake looks for a different name with different conventions. You
may try to create a symlink to this file and name it
libboost_thread-mt.a, or libboost_thread.a. Also, cmake may be looking
for a shared lib, as libboost_thread is usually linked as shared.
If you link to the boost_thread static lib in mingw-cross-env, you'll
have to define -DBOOST_THREAD_USE_LIB while building your app.
Otherwise, thread local storage cleanup may cause linker errors or
even runtime problems.
See also https://svn.boost.org/trac/boost/ticket/4921
Regards,
Lothar
[Prev in Thread] | Current Thread | [Next in Thread] |