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

Sample compile error - w/workaround #762

Closed
onehundredfeet opened this issue Feb 29, 2024 · 1 comment
Closed

Sample compile error - w/workaround #762

onehundredfeet opened this issue Feb 29, 2024 · 1 comment

Comments

@onehundredfeet
Copy link

Make sure these boxes are checked before submitting your issue - thank you!

Just an FYI that on the Mac, I get errors compiling the samples. I can work around just by not building the samples.

/box2c/samples/sample_shapes.cpp:304:36: error: taking the address of a temporary object of type 'b2ShapeDef' [-Waddress-of-temporary]
                        b2CreatePolygonShape(m_ship1Id, &b2DefaultShapeDef(), &right);
                                                        ^~~~~~~~~~~~~~~~~~~~
...
                                                           ^~~~~~~~~~~~~~~~~~~
/box2c/samples/sample_shapes.cpp:473:35: error: taking the address of a temporary object of type 'b2ShapeDef' [-Waddress-of-temporary]
                        b2CreateSegmentShape(groundId, &b2DefaultShapeDef(), &segment);
  • [ X] Ask for help on discord and/or reddit
  • [ X] Consider providing a dump file using b2World::Dump
@erincatto
Copy link
Owner

Oh right, I should add the samples to macos CI. I created this issue over on box2c.

erincatto/box2c#128

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

2 participants