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

oscplot.c:898:20: error: use of undeclared identifier 'M_PI' #440

Open
yurivict opened this issue Jul 11, 2023 · 0 comments
Open

oscplot.c:898:20: error: use of undeclared identifier 'M_PI' #440

yurivict opened this issue Jul 11, 2023 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Jul 11, 2023

You use -D_POSIX_C_SOURCE=200809L.

M_PI etc seems to be required only by late POSIX standards, e.g. IEEE Std 1003.1™-2017. I did not tried to look
for the earliest reference.

You need to compile with -D_XOPEN_SOURCE=700 if you want POSIX 2008 with XSI.

Source: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271808

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

1 participant