Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add extern "C" to correct the linkage for Windows #175

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

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Add extern "C" to correct the linkage for Windows #175

merged 1 commit into from
Apr 16, 2020

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Apr 15, 2020

This is found when I was exercising the virtual navigation with TurtleBot3 and Navigation2 for ROS 2 on Windows, where I saw many BT plugins are failed to load.

And it turned out that that without extern "C", the C++ style name mangling is in use and one cannot simply get procedure address on Windows by the plain name BT_RegisterNodesFromPlugin.

This change is to be explicit about what's the name mangling should be used.

@facontidavide facontidavide merged commit a81923a into BehaviorTree:master Apr 16, 2020
@facontidavide
Copy link
Collaborator

thanks

@seanyen seanyen deleted the patch-1 branch April 16, 2020 17:30
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