Registered Member
|
Hi,
I've am creating a dynamic library with a custom Eigen derived type ( class State : public Eigen::Matrix<double, 6, 1>, source code ). Now I would like to export this class into this dynamic library. With msvc 2012 this implies you have to add "__declspec(dllexport)" to the class declaration. However when I then compile my library, It complains that the symbols in Eigen::Matrix have not been exported to the dll;
(These errors only occur when adding the '__declspec(dllexport)' directive, without it compiles fine) I also noticed that there is no Eigen preprocessor directive to modify to add such a directive to the matrix class. Does this mean that I should modify the source code to add this directive, or can anyone suggest less intrusive method of exporting my custom type into a dll. Simon |
Moderator
|
I'm not competent enough with the windows DLL mechanism to help you much here. What I'd suggest is trying to get a working solution by hacking Eigen's source code, and get back to us to let us know what works for your case. Then we'll see...
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]