Son Nguyen
Son Nguyen

Reputation: 3491

CorePlot failed to build in XCode 4.4

I am using CorePlot 0.3, everything was ok until I upgraded XCode to 4.4 (2 days ago), CorePlot failed to build and I got some errors with message:

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

I have tried to search and it seems there are many people have a same problem, and I also found some suggestions and solution to fix it, I have applied to my CorePlot version but no luck, the issue appear in some classes such as: CPTPlot.m, CPTScatterPlot.m, CPTBarPlot.m, CPTPlotSymbol.m.

I have spending 2 days on this problem but still not able solve it, please help me, thanks in advance.

enter image description here

Upvotes: 6

Views: 2591

Answers (2)

Daniel
Daniel

Reputation: 201

I was able to resolve this issue by switching the selected Compiler in Build Options to "LLVM GCC 4.2". It looks like the Validate Settings operation is what is switching the compiler to "Apple LLVM compiler 4.0".

Upvotes: 3

Matt
Matt

Reputation: 106

The latest coreplot will fix your issues with Xcode 4.4 - https://github.com/djw/core-plot

I have not however got those latest changes to work properly in both Xcode 4.4 and Xcode 4.3 so if you are working in teams, different versions, be careful.

Upvotes: 6

Related Questions