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

Skip to content

Commit a81923a

Browse files
authored
Add extern "C" to correct the linkage for Windows (BehaviorTree#175)
1 parent 927c913 commit a81923a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/behaviortree_cpp_v3/bt_factory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ See examples for more information about configuring CMake correctly
113113
#elif _WIN32
114114

115115
#define BT_REGISTER_NODES(factory) \
116-
__declspec(dllexport) void BT_RegisterNodesFromPlugin(BT::BehaviorTreeFactory& factory)
116+
extern "C" void __declspec(dllexport) BT_RegisterNodesFromPlugin(BT::BehaviorTreeFactory& factory)
117117
#endif
118118

119119
#endif

0 commit comments

Comments
 (0)