Reputation: 309
I have a static library (native c++).
Now I would like to use this static library in a C++/CLi project.
Compiling is ok, but there is a runtime error saying "ntdll.dll! ****memory access violation".
Both the static library and the clr project are using "/MD".
Is it valid to link a clr project to a native c++ static lib? If yes, any special configurations I should pay attention to?
PS. I can't turn the static lib to dll.
Upvotes: 3
Views: 1384
Reputation: 309
Linking boost::thread
dynamically solves this problem.
#define BOOST_THREAD_DYN_LINK
thanks to Using boost in CLR
Upvotes: 2