Skip to content
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

[Windows][ros2] Export interfaces for Shared Lib on Windows #301

Merged
merged 1 commit into from
Oct 16, 2019

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Oct 15, 2019

On Windows, for a shared library, the interfaces must be explicitly decorated by proper dllimport and dllexport usage. Otherwise, no imported library (.lib) will be generated for the downstream projects to consume at link time.

This pull request is to add the interface export in a portable way provided by CMake (instead of directly using MSVC specific dllimport and dllexport).

This is a rework for #277

@seanyen
Copy link
Contributor Author

seanyen commented Oct 15, 2019

@mjcarroll I created another pull request to only address the dllexport and dllimport thing (with cleaner solution), and closed the original one.

Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the contribution.

@mjcarroll mjcarroll merged commit 9df164a into ros-perception:ros2 Oct 16, 2019
@seanyen seanyen mentioned this pull request Oct 17, 2019
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants