Cannot find a symbol in boost_thread-mt.dll
Hi, boost users! I've just tried to execute the simplest boost::thread program, compiled by vc7_1 under multi threaded dll environment. It failed to resolve a symbol in the boost_thead-mt.dll (see the attach). Why? Is it possible to use linked dynamically boost::thread library now? Info: boost version is latest CVS, compiled with --layout=system. No error occurs after gcc-3.4. The program's source: #define BOOST_ALL_NO_LIB #include <boost/thread.hpp> void f() {} int main(int argc, char* argv[]) { boost::thread(f).join(); return 0; } -- Anatoli Sakhnik
Does it work when remove the line #define BOOST_ALL_NO_LIB Why do you define this anyway? Greets, Christian
Hi! Without BOOST_ALL_NO_LIB the library attempts to link a versioned object archive file boost_thread-mt-1_33.lib. But I compiled the boost with --layout=system. So the only way to produce executable binary is to link against boost_thread-mt.lib manually. Should I recompile the boost libraries with --layout=versioned to try automatic linking? -- Anatoli Christian Henning wrote:
Does it work when remove the line
#define BOOST_ALL_NO_LIB
Why do you define this anyway?
Greets, Christian
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Anatoli Sakhnik
-
Christian Henning