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

Adding '#define _USE_MATH_DEFINES' to make M_PI declared in Intel and MSVC compilers #3238

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

MAS-OUD
Copy link

@MAS-OUD MAS-OUD commented Dec 25, 2024

the M_PI used in mesh.cpp, plot.cpp, and quartic_solver.cpp is undeclared in Intel and MSVC compilers. To make it declared in these compilers #define _USE_MATH_DEFINES must be added before #include <cmath>.

M_PI is undeclared in Intel and MSVC compilers. To make it declared in these compilers '#define _USE_MATH_DEFINES' must be added before '#include <cmath>'.
M_PI is undeclared in Intel and MSVC compilers. To make it declared in these compilers '#define _USE_MATH_DEFINES' must be added before '#include <cmath>'.
M_PI is undeclared in Intel and MSVC compilers. To make it declared in these compilers '#define _USE_MATH_DEFINES' must be added before '#include <cmath>'.
@MAS-OUD MAS-OUD requested a review from pshriwise as a code owner December 25, 2024 08:36
@MAS-OUD MAS-OUD changed the title Adding '#define _USE_MATH_DEFINES' to some files to make M_PI declared in Intel and MSVC compilers Adding '#define _USE_MATH_DEFINES' to make M_PI declared in Intel and MSVC compilers Dec 25, 2024
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

Successfully merging this pull request may close these issues.

1 participant