We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gcc-4.9 does not use c99 by default, so the compilation fails with
cc -c -specs=/void-packages/common/environment/configure/gccspecs/hardened-cc1 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe -DDCADEC_SHARED -DDCADEC_INTERNAL -fPIC -fvisibility=hidden -o libdcadec/interpolator_fixed.o libdcadec/interpolator_fixed.c In file included from libdcadec/idct_fixed.c:21:0: libdcadec/idct.h:67:64: error: expected ';', ',' or ')' before 'idct' void idct_perform32_float(const struct idct_context * restrict idct, ^ ...
adding -std=gnu99 to the CFLAGS fixes this issue.
-std=gnu99
CFLAGS
EDIT: replaced c99 with gnu99 as c99 neither defines __USE_MISC or __USE_XOPEN nor __USE_GNU which is needed to define M_PI when including math.h.
c99
gnu99
__USE_MISC
__USE_XOPEN
__USE_GNU
M_PI
math.h
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
I'm using void-packages to build dcadec. void-packages sets its own CFLAGS which overwrite the ones in the Makefile, I guess.
No branches or pull requests
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
.The text was updated successfully, but these errors were encountered: