I then copied the hello world example in the documentation and run the program:
In release mode everything works as expected, the problem is in debug mode where it crashed. Debugging the program shows that the crash happens when calling:
cpSpaceFree(space)
This seems very strange, but cannot figure it out, maybe I missed something in the cmake setup?
If anyone could try and reproduce this bug it would be amazing...
Hello,
I added chipmunk as a submodule in my project that uses cmake, I included it like this:
add_subdirectory(deps/chipmunk)
include_directories(deps/chipmunk/include)
target_link_libraries(${PROJECT_NAME} chipmunk_static)
I then copied the hello world example in the documentation and run the program:
In release mode everything works as expected, the problem is in debug mode where it crashed. Debugging the program shows that the crash happens when calling:
cpSpaceFree(space)
This seems very strange, but cannot figure it out, maybe I missed something in the cmake setup?
If anyone could try and reproduce this bug it would be amazing...
Thanks!