-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Provide -std=c99 to allow compilation with older toolchains #773
Comments
yes. I "broke" it recently by using c99 code. The codebase didn't have any -std= flag, so was getting toolchain defaults, and I've been on a gcc 5.x toolchain for a while now. (which defaults to c11 iirc) It was reported here, but the "right" thing to do is add the -std=c99 flags to the library makefiles. For your particular case, you can also just start using a newer toolchain :) Sorry about the inconvenience though, it was not intentional to break compiles on older toolchains. |
I have same issue when using GCC ARM toolchain from GNU/Debian
|
And you have the same solution :) |
setting "STANDARD_FLAGS=-std=c11" or similar will let you try out alternate compilation modes. Fixes libopencm3#773
setting "STANDARD_FLAGS=-std=c11" or similar will let you try out alternate compilation modes. Fixes libopencm3#773
setting "STANDARD_FLAGS=-std=c11" or similar will let you try out alternate compilation modes. Fixes libopencm3#773
setting "STANDARD_FLAGS=-std=c11" or similar will let you try out alternate compilation modes. Fixes libopencm3#773
I confirm, karlp's solution is working fine for me. Eager to see that in upstream. |
setting "STANDARD_FLAGS=-std=c11" or similar will let you try out alternate compilation modes. Fixes libopencm3#773
commit 383fafc (current master)
make give me:
With
CFLAGS="-std=gnu99" make
all build fine, but i think it may be bug in makefile or documentation.The text was updated successfully, but these errors were encountered: