Shishir.bobby
Shishir.bobby

Reputation: 10984

clang: error: -Z-reserved-lib-stdc++

I am migrating from 4.3 to xCode preview45 While linking my coreplot lib, i am getting this, which i am trying to resolve since last 5 days.

Please suggest me what should i do to overcome this issue. clang:

clang: error: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is present
Command /Volumes/Xcode 1/Xcode45-DP3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I tried changing C/C++ compiler,linker flag, etc, nothing worked so far.

Thanks

Upvotes: 0

Views: 857

Answers (1)

Eric Skroch
Eric Skroch

Reputation: 27381

The easiest way to fix this is to pull the latest code with Mercurial. If you don't want to do that, you need to remove several compiler flags and make some other changes. See the necessary changes here and here.

Upvotes: 1

Related Questions