Mixing a dll boost library with a static runtime is a really bad idea..."

I am getting error "fatal error C1189: #error : "Mixing a dll boost library with a static runtime is a really bad idea..." I am building a application which uses boost threads and mutexs using vc6. My runtime library is "Debug MultiThreaded". please help to solve this issue? --------------------------------- Blab-away for as little as 1ยข/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.

Saurabh Ramya wrote:
I am getting error
"fatal error C1189: #error : "Mixing a dll boost library with a static runtime is a really bad idea..."
I am building a application which uses boost threads and mutexs using vc6. My runtime library is "Debug MultiThreaded".
please help to solve this issue?
This is really an issue for boost-users. Anyway, change your runtime library to "Debug Multithreaded DLL" and it should work. Don't forget to change the runtime to "Multithreaded DLL" in release mode. Sebastian Redl

Thanks for your reply. But I am just including the header files of the boost like muthex.hpp and not using the DLL. But even though itried by changing the setting to the Debug MT DLL" And I am getting warning "non dll-interface class 'boost::noncopyable' used as base for dll-interface class 'boost::mutex'" And at the end I get error fatal error LNK1104: cannot open file "boost_thread-vc6-mt-gd-1_31.lib" Sebastian Redl <sebastian.redl@getdesigned.at> wrote: Saurabh Ramya wrote:
I am getting error
"fatal error C1189: #error : "Mixing a dll boost library with a static runtime is a really bad idea..."
I am building a application which uses boost threads and mutexs using vc6. My runtime library is "Debug MultiThreaded".
please help to solve this issue?
This is really an issue for boost-users. Anyway, change your runtime library to "Debug Multithreaded DLL" and it should work. Don't forget to change the runtime to "Multithreaded DLL" in release mode. Sebastian Redl _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Redirecting to users list... Saurabh Ramya wrote:
Thanks for your reply. But I am just including the header files of the boost like muthex.hpp and not using the DLL. But even though itried by changing the setting to the Debug MT DLL" And I am getting warning "non dll-interface class 'boost::noncopyable' used as base for dll-interface class 'boost::mutex'" And at the end I get error fatal error LNK1104: cannot open file "boost_thread-vc6-mt-gd-1_31.lib"
It's called automatic linking, see <http://www.boost.org/more/getting_started.html#auto-link>. And more generally the getting started docs <http://www.boost.org/more/getting_started.html> The "non dll-interface" warning can be ignored. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
participants (3)
-
Rene Rivera
-
Saurabh Ramya
-
Sebastian Redl