oscplot.c:898:20: error: use of undeclared identifier 'M_PI'
yurivict opened this issue · comments
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