mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] linking to libboost_thread_win32-mt.a


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] linking to libboost_thread_win32-mt.a
Date: Tue, 29 May 2012 16:36:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120428 Firefox/12.0 SeaMonkey/2.9.1


Jamie Lahowetz wrote:
Thanks for the reply.
I changed LIBS to LIBS="$LIBS -lboost_thread_win32-mt"
And am now receiving the error:
terminal.o: In function `thread<int (SshClient::*)(int), SshClient*, int>': /home/deadpickle/mxe/usr/lib/gcc/i686-pc-mingw32/4.7.0/../../../../i686-pc-mingw32/include/boost/thread/detail/thread.hpp:259: undefined reference to `_imp___ZN5boost6thread12start_threadEv'
terminal.o: In function `ZN10MainWindow12get_stn_infoEv':
/home/deadpickle/hprcc_terminal/src/terminal.cpp:35: undefined reference to `_imp___ZN5boost6threadD1Ev' I received this before and assumed that it was because I was linking incorrectly. How can we fix it?


In src/boost.mk, where test-boost.exe is built, "-DBOOST_THREAD_USE_LIB" looks like the answer.

Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]