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
Reference build: gz-sim8-win
Log output:
gz-sim8-acoustic-comms-system.vcxproj -> C:\J\workspace\ign_gazebo-gz-8-win\ws\build\gz-sim8\bin\Release\gz-sim8-acoustic-comms-system.dll Building Custom Rule C:/J/workspace/ign_gazebo-gz-8-win/ws/gz-sim/src/systems/advanced_lift_drag/CMakeLists.txt AdvancedLiftDrag.cc C:\J\workspace\ign_gazebo-gz-8-win\ws\gz-sim\src\systems\advanced_lift_drag\AdvancedLiftDrag.cc(618,64): error C2065: 'M_PI': undeclared identifier [C:\J\workspace\ign_gazebo-gz-8-win\ws\build\gz-sim8\src\systems\advanced_lift_drag\gz-sim8-advanced-lift-drag-system.vcxproj] C:\J\workspace\ign_gazebo-gz-8-win\ws\gz-sim\src\systems\advanced_lift_drag\AdvancedLiftDrag.cc(674,46): error C2065: 'M_PI': undeclared identifier [C:\J\workspace\ign_gazebo-gz-8-win\ws\build\gz-sim8\src\systems\advanced_lift_drag\gz-sim8-advanced-lift-drag-system.vcxproj]
M_PI mentions: https://github.com/gazebosim/gz-sim/blob/gz-sim8/src/systems/advanced_lift_drag/AdvancedLiftDrag.cc#L618 and https://github.com/gazebosim/gz-sim/blob/gz-sim8/src/systems/advanced_lift_drag/AdvancedLiftDrag.cc#L674.
M_PI
This is only failing in Windows
The text was updated successfully, but these errors were encountered:
it should be GZ_PI
GZ_PI
Sorry, something went wrong.
from https://github.com/gazebosim/gz-math/blob/6460f7c0a59833e2729157d246ee07806ff56126/include/gz/math/Helpers.hh#L43-L55
Use GZ_PI instead of M_PI to fix windows builds
5e66988
Fixes gazebosim#2229 Signed-off-by: Addisu Z. Taddese <[email protected]>
Use GZ_PI instead of M_PI to fix windows builds (#2230)
82fbdba
Fixes #2229 Signed-off-by: Addisu Z. Taddese <[email protected]>
azeey
Successfully merging a pull request may close this issue.
Environment
Description
Steps to reproduce
Output
Reference build: gz-sim8-win
Log output:
M_PI
mentions: https://github.com/gazebosim/gz-sim/blob/gz-sim8/src/systems/advanced_lift_drag/AdvancedLiftDrag.cc#L618 and https://github.com/gazebosim/gz-sim/blob/gz-sim8/src/systems/advanced_lift_drag/AdvancedLiftDrag.cc#L674.This is only failing in Windows
The text was updated successfully, but these errors were encountered: