I got this error while compiling Android version
cc1: error: unrecognized command line option '-std=c11'
But I have gcc installed in my system.
$ gcc -std=c11 --version is giving me the the below out
-vbox:~/eSpeak/espeak-master$ gcc -std=c11 --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
make apk-release this is the command that is giving this error.
root@ap-vbox:~/eSpeak/espeak-master# make apk-releasecd android && ndk-build
/home/sunil/android-ndk/build/extract_manifest.py: 16: /home/sunil/android-ndk/build/extract_manifest.py: Extracts values from the AndroidManifest.xml file.: not found
/home/sunil/android-ndk/build/extract_manifest.py: 22: /home/sunil/android-ndk/build/extract_manifest.py: Syntax error: "(" unexpected
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will *not* be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
/home/sunil/android-ndk/build/extract_manifest.py: 16: /home/sunil/android-ndk/build/extract_manifest.py: Extracts values from the AndroidManifest.xml file.: not found
/home/sunil/android-ndk/build/extract_manifest.py: 22: /home/sunil/android-ndk/build/extract_manifest.py: Syntax error: "(" unexpected
make[1]: Entering directory `/home/sunil/eSpeak/espeak-master/android'
[mips] SharedLibrary : libttsespeak.so
/home/sunil/android-ndk/toolchains/llvm/prebuilt/linux-x86/bin/clang++: 1: /home/sunil/android-ndk/toolchains/llvm/prebuilt/linux-x86/bin/clang++: Syntax error: ")" unexpected
make[1]: *** [obj/local/mips/libttsespeak.so] Error 2
make[1]: Leaving directory `/home/sunil/eSpeak/espeak-master/android'
make: *** [jni] Error 2
I got this error while compiling Android version
cc1: error: unrecognized command line option '-std=c11'
But I have gcc installed in my system. $ gcc -std=c11 --version is giving me the the below outmake apk-release
this is the command that is giving this error.Can anyone help to fix this.Thanks.