-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared library compilation on Windows is broken #717
Comments
I'll have a look at this. @traversaro is there any testing suite in the superbuild we could use against the upcoming fix branch? |
Sorry, I had missed this, Actually the problem emerges also on a standalone compilation of icub-main, just enable the |
I'll try to address this over the weekend. |
Back in 2015, #243 added support for compiling icub-main as a shared library on Windows by setting the
ICUB_SHARED_LIBRARY
variable toON
, but this stopped working in #259 as some global constant variables. At the moment, compilation as a shared library on Windows is failing with errors:To correctly expose global constant variables on Windows as a shared library, it is necessary to use the
generate_export_header
function, see https://github.com/ms-iot/ROSOnWindows/pull/37/files for related docs.Note that this is not a big or urgent issue, as apparently shared library compilation on Windows stopped working after one month and no one noticed for 5 years, but it is better to track it somewhere if anyone is experience this error.
The text was updated successfully, but these errors were encountered: