<div dir="ltr">I am trying to integrate a command-line program, that uses the BOOST UBLAS library, with a Windows Forms GUI. I get the following error when I attempt to compile the code:<br><br>Error&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe&nbsp;&nbsp;&nbsp; C:\Program Files\boost\boost_1_35_0\boost\serialization\void_cast_fwd.hpp&nbsp;&nbsp;&nbsp; 26<br>
Error&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp; error C3395: &#39;boost::serialization::void_cast_register&#39; : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention&nbsp;&nbsp;&nbsp; C:\Program Files\boost\boost_1_35_0\boost\serialization\void_cast_fwd.hpp&nbsp;&nbsp;&nbsp; 30<br>
<br>I am not linking the program to the Boost Serialization library. I realize there have already been discussions on the use of BOOST_DLLEXPORT in the serialization library. Unfortunately, it was not stated how to solve this problem.<br>
<br></div>