lubyk / dub

A Lua bindings generator that uses Doxygen to parse C/C++ headers.
doc.lubyk.org/dub.html
Other
82 stars 34 forks source link

Symbols not Exported on Windows #6

Closed LPGhatguy closed 9 years ago

LPGhatguy commented 9 years ago

Based on bt, which is generated by dub, it seems that symbols are not properly exported for use in a Windows DLL.

Looking at https://github.com/lubyk/bt/blob/master/src/bind/bt_BoxShape.cpp in bt, it is shown that no symbols are exported, causing bt to fail when required.

Each method should be prepended with __declspec(dllexport) on Windows.

LPGhatguy commented 9 years ago

After looking into things again, the luaopen_* methods should indeed be exported using __declspec(dllexport) when on Windows.