Suyash
Suyash

Reputation: 415

unknown argument: '-stdc++' [-Wunused-command-line-argument-hard-error-in-future] during build in XCODE 5.1

I get this error when I build a project in XCODE 5.1. I followed Link and downloaded New command line tools from Apple.But facing same issue. Please guide me. thanks

Upvotes: 1

Views: 2128

Answers (2)

Brave
Brave

Reputation: 367

Have 3 steps u should do to fix it: - Remove -stdc++ in Other Linker Flags - Add -lstdc++ into Other Linker Flags - Add libstdc++6.09.dylib into Link binary with Libraries.

Good luck.

Upvotes: 5

Anuj Acharya
Anuj Acharya

Reputation: 576

Follow this as it's happening because of Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn) : https://langui.sh/2014/03/10/wunused-command-line-argument-hard-error-in-future-is-a-harsh-mistress/

Upvotes: 1

Related Questions