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

Unable to use MSVC static library due to dllexport #116

Open
fatcerberus opened this issue Dec 8, 2015 · 0 comments
Open

Unable to use MSVC static library due to dllexport #116

fatcerberus opened this issue Dec 8, 2015 · 0 comments

Comments

@fatcerberus
Copy link

Due to this bit in chipmunk.h, using Chipmunk as a static library in Windows (without manual editing) is impossible:

#ifdef WIN32
    // For alloca().
    #include <malloc.h>
    #define CP_EXPORT __declspec(dllexport)
#else
    #include <alloca.h>
    #define CP_EXPORT
#endif

The static library compiles, but causes link errors when used in another app. Same is true for a DLL build actually, because the correct declaration in that case is dllimport.

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

No branches or pull requests

1 participant