I am trying to run the drop plot example of coreplot but i am getting the following errors...
ld: warning: ignoring file /Users/nagarjun/Documents/CorePlotInstall_0-1.3/Source Code/build/Debug-iphoneos/libCorePlot-CocoaTouch.a, file was built for archive which is not the architecture being linked (i386) Undefined symbols for architecture i386: "_CPDecimalFromFloat", referenced from: -[CPPlotDocument windowControllerDidLoadNib:] in CPPlotDocument.o "_CPDecimalFromDouble", referenced from: -[CPPlotDocument windowControllerDidLoadNib:] in CPPlotDocument.o "_kCPPlainWhiteTheme", referenced from: -[CPPlotDocument windowControllerDidLoadNib:] in CPPlotDocument.o ".objc_class_name_CPScatterPlot", referenced from: po开发者_运维技巧inter-to-literal-objc-class-name in CPPlotDocument.o ".objc_class_name_CPColor", referenced from: pointer-to-literal-objc-class-name in CPPlotDocument.o ".objc_class_name_CPMutableLineStyle", referenced from: pointer-to-literal-objc-class-name in CPPlotDocument.o ".objc_class_name_CPPlotRange", referenced from: pointer-to-literal-objc-class-name in CPPlotDocument.o ".objc_class_name_CPTheme", referenced from: pointer-to-literal-objc-class-name in CPPlotDocument.o ".objc_class_name_CPXYGraph", referenced from: pointer-to-literal-objc-class-name in CPPlotDocument.o ".objc_class_name_CPDecimalNumberValueTransformer", referenced from: pointer-to-literal-objc-class-name in CPPlotDocument.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status
Do you change project settings?
- Copy the CorePlotHeaders directory to your Xcode project
- Copy the Core Plot library to your Xcode project.
- Open your apps Target Build Settings, and for Other Linker Flags include this: -ObjC -all_load
- Add the QuartzCore framework to the project.
- Change your C/C++ Compiler in the project build settings to LLVM GCC 4.2 or LLVM 1.6.
精彩评论