user3823935
user3823935

Reputation: 891

clang: error: unknown argument: '-stdc++'

enter image description here

I am getting error as

clang: error: unknown argument: '-stdc++'

what causes this error?.How to solve this?any help will be appreciated.thanks in advance

Upvotes: 1

Views: 702

Answers (1)

mocj
mocj

Reputation: 1476

That is the option for the language specifier. You are missing the = sign and the language specifier that comes after it will depend on the version of the language you are compiling for. Example, targeting C++11

-std=c++11

The man page for your tool chain should document the available supported languages.

Upvotes: 3

Related Questions