-
Notifications
You must be signed in to change notification settings - Fork 533
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
Build fails on GCC 10 #519
Comments
How is it supposed to work for global |
I'm afraid I know very little about C++, so I can't be of much help here.
… On Jan 20, 2021, at 10:31 PM, kcat ***@***.***> wrote:
How is it supposed to work for global constexpr values/arrays? Inline variables are a C++17 feature, but it should be possible to have global constexpr variables in C++14.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#519 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABCJTBUBODPJC26RQ3TDAILS27C3VANCNFSM4WMI37MA>.
|
Fixed with commit 20f5e7c. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GCC 10 contains a breaking change: it defaults to
-fno-common
, which requires globals to be declared in exactly one C file, and referenced elsewhere withextern
. This causesopenal-soft
to fail to build with a linker error:This could be fixed by declaring globals in exactly one place as noted above, or by explicitly passing
-fcommon
to gcc.The text was updated successfully, but these errors were encountered: