|clang++ error when invoked by Eclipse with C++17 flag [message #1775666]
||Fri, 03 November 2017 01:28
| Angelo Andrade Cirino
Registered: June 2015
Hi, I develop on macOS and configured my workspace and my projects to use C++17 with clang 5.0. In the project settings -> LLVM Clang++ -> Dialect I set the field "Other dialect flags" to -std=c++17 and Eclipse generates the following compiler invocation:|
clang++ -I/usr/local/include -O0 -emit-llvm -g3 -Wall -c -fmessage-length=0 -std=c++17 -o main.bc ../main.cpp
But when I try to build the project it reports this error
error: invalid value 'c++17' in '-std=c++17'
When I copy and paste the compiler invocation reported by Eclipse in the command line the compiler works as expected, without problems. Curiously the same happens with Apple's XCode. How should I proceed to fix this problem since I really want to move on to C++17?
Powered by FUDForum
. Page generated in 0.01485 seconds