Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » clang++ error when invoked by Eclipse with C++17 flag(I moved to clang 5.0 and am trying to use C++17 features, but Eclipse reports an error)
clang++ error when invoked by Eclipse with C++17 flag [message #1775666] Fri, 03 November 2017 01:28
Angelo Andrade Cirino is currently offline Angelo Andrade CirinoFriend
Messages: 2
Registered: June 2015
Junior Member
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?

Regards,

Angelo
Previous Topic:Papyrus RT - create new project with load template C++
Next Topic:Tool Integration: Makefile doesn't generated correctly.
Goto Forum:
  


Current Time: Thu Apr 25 04:13:19 GMT 2024

Powered by FUDForum. Page generated in 0.03004 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top