Beginner: Unrecognized command line option ‘-std=gnu++14’ ??
I am new to QT Creator and have spent many hours trying to figure out where the following error is coming from:
:-1: error: error: unrecognized command line option ‘-std=gnu++14’
I am trying to get an OpenFrameworks example to compile on Ubuntu 14.04 LTS
Openframeworks is newly installed, and compiles correctly using a make file.
However, in QT Creator, I get the above error message. I cannot find where to change it.
I don't inderstand why QT-Creator is supplying ‘-std=gnu++14’ and would like to override that.
My setup is like this:
Qt Creator 3.6.0
Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)
on Ubuntu 10.04 LTS
In Options Build & Run, Compiler
Compile path: /usr/bin/gcc-4.8
codegen and linker flags both left blank
QT Version set to:
QT 4.8.6 in PATH /usr/lib/x86_64-linux-gnu/qt4/bin/qmake
QT 4.8.6 for Desktop
Device: Local PC (Default for Desktop)
Debugger: System GDB
Qt Version: as above
CMake tool: System Cmake
I would be grateful if someone could help me get things going, please.
How do you build it QtCreator? Using qmake, cmake, ...?
I don't no exactly about the error, but basically this line (‘-std=gnu++14’) trying to enable the C++14 features. Please check your configuration is supporting C++14 features.
Thanks for responding,
@jsulm I use QtCreator 'Build All' ( building one of the simple examples in OpenFrameworks.)
@Bagavathi I know my system does not handle C++14, so why does QtCreator make this wrong request?
hi and welcome
Do you have a .pro file?
if yes, look for
I know my system does not handle C++14, so why does QtCreator make this wrong request?
So any one of your sub packages are expecting C++14 possibly OpenFramework. Please check the requirement of OpenFramework or simply update your compiler gcc 4.8 to gcc 4.9
In the meantime I also discovered ( I am on Ubuntu ), that using command-line and 'make' works fine for all projects. So I am sorted.
Thanks very much for your help.
John Montgomery, Glassel, Scotland.