I have successfully implemented a network application in visual CLR project using boost.asio. but when i tried to use the same code in windows form project with Common "Language Runtime Support (/clr)" which is recommended by boost.asio its not working Error 15 error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (dummy): (0x01000019)
.
My question is how can i integrate my network codes done by using boost.asio in windows form project. What i am going to try now is to compile the all the boost.asio implementations as "No Common Language Runtime support" in a different project as dynamic library and link it with the windows form project.
Meanwhile if any of you'll guys have tried it already please help me to save some time.
It seems that youre using boost::thread. According to this bug report , this question, and my personal experience, boost::thread wont work with C++/CLR projects when linked statically. You should put them in an unmanaged library and use that library instead, like you said yourself.