We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was getting this error when build in Windows:
error LNK2019: unresolved external symbol "public: class b2Joint * __cdecl b2World::CreateJoint(class b2JointDef const *)"
As you can see in this job: https://github.com/supernovaengine/supernova/actions/runs/5994348679/job/16255853451
I discovered the problem was in b2JointDef. After changed include order in box2d.h, putting joints before body, it worked. I don't know why.
b2JointDef
box2d.h
#include "b2_distance_joint.h" #include "b2_friction_joint.h" #include "b2_gear_joint.h" #include "b2_motor_joint.h" #include "b2_mouse_joint.h" #include "b2_prismatic_joint.h" #include "b2_pulley_joint.h" #include "b2_revolute_joint.h" #include "b2_weld_joint.h" #include "b2_wheel_joint.h" #include "b2_body.h" #include "b2_contact.h" #include "b2_fixture.h" #include "b2_time_step.h" #include "b2_world.h" #include "b2_world_callbacks.h"
Linux and Mac are ok in any order.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was getting this error when build in Windows:
error LNK2019: unresolved external symbol "public: class b2Joint * __cdecl b2World::CreateJoint(class b2JointDef const *)"
As you can see in this job: https://github.com/supernovaengine/supernova/actions/runs/5994348679/job/16255853451
I discovered the problem was in
b2JointDef
. After changed include order inbox2d.h
, putting joints before body, it worked. I don't know why.Linux and Mac are ok in any order.
The text was updated successfully, but these errors were encountered: