Closed twisteroidambassador closed 6 years ago
The "-std=gnu11" flag is now automatically added if necessary: ab268e50ca2dee08cd8cfb703edad3227f280d80
Newer versions of gcc and clang have c11 support enabled by default, but apparently gcc pre-5 uses "-std=gnu89" by default.
While README.md states:
It is actually required to use "-std=c11" for the compiled library to work, otherwise problems will arise either when compiling or importing. Maybe the flag should be added to the makefiles.
Tested with GCC 4.8.5: if no "-std" flags are specified, compilation fails with
and if "-std=c99" is specified, if the warnings are turned on, many warnings can be seen:
using the compiled library will raise an error similar to "undefined symbol: static_assert".