Open Gottox opened 8 years ago
Are you using a custom build script? Those cflags don't look like the ones in Makefile, which add -std=gnu99 and work just fine with gcc 4.9
I'm using void-packages to build dcadec. void-packages sets its own CFLAGS which overwrite the ones in the Makefile, I guess.
gcc-4.9 does not use c99 by default, so the compilation fails with
adding
-std=gnu99
to theCFLAGS
fixes this issue.EDIT: replaced
c99
withgnu99
asc99
neither defines__USE_MISC
or__USE_XOPEN
nor__USE_GNU
which is needed to defineM_PI
when includingmath.h
.