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

M_PI is not supposed to be defined in C99 #1

Closed
Xfennec opened this issue Sep 18, 2015 · 1 comment
Closed

M_PI is not supposed to be defined in C99 #1

Xfennec opened this issue Sep 18, 2015 · 1 comment

Comments

@Xfennec
Copy link

Xfennec commented Sep 18, 2015

The code is compiled with -std=c99 flag, but the C99 standard dropped M_PI and all other mathc defines of the same type. When compiling a compiler that strictly respects ISO like gcc, it generates a M_PI undefined error.

You should probably define your own PI, or compile with -std=gnu99 flag, for instance.

@coreh
Copy link
Owner

coreh commented Nov 28, 2015

Thanks for pointing it out! Added my own.

@coreh coreh closed this as completed Nov 28, 2015
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