boost unter borland
-
Hallo,
C:\Borland\BCC55\Bin>bcc32 -tWM thread.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland thread.cpp: Fatal F1003 c:\Borland\Bcc55\include\boost/config/auto_link.hpp 281: Error direc tive: "Mixing a dll boost library with a static runtime is a really bad idea..." *** 1 errors in Compile ***
...gesehen beim Versuch ein Beispiel für Boost zu kompilieren...
...gesucht:Hilfe...#include <iostream> #include <boost/thread/thread.hpp> using namespace std; void foo() { for(int i=0; i<10000; i++) cout << "huhu: " << i << endl; } void bar() { for(int i=0; i<10000; i++) cout << "lala: " << i << endl; } int main() { boost::thread t1(&foo); // Thread-Objekt t1 erstellen und foo() starten. bar(); // t1 läuft gleichzeitig weiter, während bar() aufgerufen wird! }
...Das Beispiel kennt ihr schon...
-
was nun?
-
Hallo,
Kann es sein, das du die Lib für statische dll-Bindung (z. Bsp. boost_thread-bcb-mt-d-1_33_1.lib) und die normale statische lib (z. Bsp. libboost_thread-bcb-mt-d-1_33_1.lib) eingebunden hast?
Da soll nur eine von beiden rein und hier am besten die zweite.