Open travisbutton opened 5 years ago
I'm on CentOS 7, and I got past this error by editing the "CMakeCache.txt" file in the "build" subdirectory. The file contains two lines that looked like "CMAKE_CXX_FLAGS:STRING=" and "CMAKE_C_FLAGS:STRING=" and I added the flag to each of them:
CMAKE_CXX_FLAGS:STRING=-std=c99 and CMAKE_C_FLAGS:STRING=-std=c99
In case you get the same error I encountered next, you can combine multiple compiler flags on the same line. This is what ultimately worked for me:
CMAKE_CXX_FLAGS:STRING=-std=c99 -std=c++11 and CMAKE_C_FLAGS:STRING=-std=c99 -std=c++11
It may be that only one of these lines needed to be changed, but changing both worked for me.
Apologies in advance for what may be a simple fix, I'm very unfamiliar with C. I've looked for solutions on several forums, gone into the makefile both in the "build" directory and "lzfse" directory to add CFLAGS=-std=c99 and this is still kicking the same error. Any ideas?