On Mon, May 28, 2012 at 4:53 PM, Mark Brand
<address@hidden> wrote:
Jamie Lahowetz wrote:
I'm trying to use the boost_thread libraries in my program and are having troubles linking to the library. Im using autotools to build my project and I keep getting the error
/home/deadpickle/mxe/usr/lib/gcc/i686-pc-mingw32/4.7.0/../../../../i686-pc-mingw32/bin/ld: cannot find -lboost_thread_win32-mt.a
So far I have tried setting the LDFLAG in my configure call and specifying -llibboost_thread_win32-mt.a and none of these seem to be working. Any ideas?
Hi Jamie,
The flag "-lboost_thread_win32-mt" corresponds to the file "usr/i686-pc-mingw32/lib/libboost_thread_win32-mt.a". In other words, in your linker flag, omit the "lib" prefix and the ".a" suffix.
Mark