-
Notifications
You must be signed in to change notification settings - Fork 350
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
MSVC+CMake: unresolved external symbol cpHastySpaceNew #194
Comments
Excerpt of
|
In the excerpt above you see that only the C++-mangled name is exported in the case of Tried a few things like ensuring that This was the only way that I found to make it work, but I don't know if it might be undesirable: diff --git a/include/chipmunk/chipmunk.h b/include/chipmunk/chipmunk.h
index d98ba7e..6239d0d 100644
--- a/include/chipmunk/chipmunk.h
+++ b/include/chipmunk/chipmunk.h
@@ -124,6 +124,7 @@ typedef struct cpSpace cpSpace;
#include "cpConstraint.h"
#include "cpSpace.h"
+#include "cpHastySpace.h"
// Chipmunk 7.0.3
#define CP_VERSION_MAJOR 7 |
oprypin
added a commit
to oprypin/crystal-chipmunk
that referenced
this issue
Jun 19, 2020
oprypin
added a commit
to oprypin/crystal-chipmunk
that referenced
this issue
Oct 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
I built Chipmunk from source using CMake + MSVC 2019.
Then, when using MSVC command line to link any program that uses
cpHastySpace
, I get the errorcpSpaceNew
works, though.Full CMD session to reproduce the issue:
Using
cpSpaceNew
instead works, though:The text was updated successfully, but these errors were encountered: