Hello, I got some linker errors when I use the new boost thread library 1.36. together with the Visual Studio 2008. The linker error appears when I use the method create_thread: _guiThread =_threads.create_thread(gui_thread_starter); The error message is: error LNK2022: metadata operation failed (8013119F) : There is a typeref without the necessary suitable typedef If I comment this line the linker error wont appear. I linked the thread library dynamically to my library by using the definition: #ifndef BOOST_THREAD_USE_DLL #define BOOST_THREAD_USE_DLL #endif #ifndef BOOST_ALL_DYN_LINK #define BOOST_ALL_DYN_LINK #endif I compiled the library with the /clr option. Best regards and thanks for your help in advance. Niklas ________________________________________________________________________ Schon gehört? Bei WEB.DE gibt' s viele kostenlose Spiele: http://games.entertainment.web.de/de/entertainment/games/free/index.html
NFarnsworth@web.de writes:
I got some linker errors when I use the new boost thread library 1.36. together with the Visual Studio 2008.
I compiled the library with the /clr option.
That's your problem: Boost.thread doesn't play well with /CLR. Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
participants (2)
-
Anthony Williams
-
NFarnsworth@web.de