Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-09-2010, 07:52 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default Library inclusion problem

Help needed to know the reason for below errors. These errors which are in color red are result of a library inclusion( .a).


Ld build/Debug-iphonesimulator/CPCharts.app/CPCharts normal i386
cd /Users/sesramcocomethirajulu/Documents/CPCharts
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk -L/Users/sesramcocomethirajulu/Documents/CPCharts/build/Debug-iphonesimulator -F/Users/sesramcocomethirajulu/Documents/CPCharts/build/Debug-iphonesimulator -filelist /Users/sesramcocomethirajulu/Documents/CPCharts/build/CPCharts.build/Debug-iphonesimulator/CPCharts.build/Objects-normal/i386/CPCharts.LinkFileList -mmacosx-version-min=10.5 -ObjC -all_load -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -o /Users/sesramcocomethirajulu/Documents/CPCharts/build/Debug-iphonesimulator/CPCharts.app/CPCharts

Undefined symbols:
".objc_class_name_CPXYGraph", referenced from:
literal-pointer@__OBJC@__cls_refs@CPXYGraph in CPChartsViewController.o
".objc_class_name_CPTextStyle", referenced from:
literal-pointer@__OBJC@__cls_refs@CPTextStyle in CPChartsViewController.o
".objc_class_name_CPColor", referenced from:
literal-pointer@__OBJC@__cls_refs@CPColor in CPChartsViewController.o
".objc_class_name_CPPlotSymbol", referenced from:
literal-pointer@__OBJC@__cls_refs@CPPlotSymbol in CPChartsViewController.o
".objc_class_name_CPPlotRange", referenced from:
literal-pointer@__OBJC@__cls_refs@CPPlotRange in CPChartsViewController.o
".objc_class_name_CPTextLayer", referenced from:
literal-pointer@__OBJC@__cls_refs@CPTextLayer in CPChartsViewController.o
".objc_class_name_CPBarPlot", referenced from:
literal-pointer@__OBJC@__cls_refs@CPBarPlot in CPChartsViewController.o
"_kCPDarkGradientTheme", referenced from:
_kCPDarkGradientTheme$non_lazy_ptr in CPChartsViewController.o
(maybe you meant: _kCPDarkGradientTheme$non_lazy_ptr)
".objc_class_name_CPPieChart", referenced from:
literal-pointer@__OBJC@__cls_refs@CPPieChart in CPChartsViewController.o
".objc_class_name_CPTheme", referenced from:
literal-pointer@__OBJC@__cls_refs@CPTheme in CPChartsViewController.o
"_CPDecimalFromFloat", referenced from:
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
".objc_class_name_CPLineStyle", referenced from:
literal-pointer@__OBJC@__cls_refs@CPLineStyle in CPChartsViewController.o
"_CPDecimalFromString", referenced from:
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
-[CPChartsViewController constructScatterPlot] in CPChartsViewController.o
".objc_class_name_CPScatterPlot", referenced from:
literal-pointer@__OBJC@__cls_refs@CPScatterPlot in CPChartsViewController.o
".objc_class_name_CPFill", referenced from:
literal-pointer@__OBJC@__cls_refs@CPFill in CPChartsViewController.o
".objc_class_name_CPGradient", referenced from:
literal-pointer@__OBJC@__cls_refs@CPGradient in CPChartsViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Last edited by santosh_kumar; 11-09-2010 at 10:42 PM.
santosh_kumar is offline   Reply With Quote
Old 11-11-2010, 12:54 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Above errors are resolved by adding libCorePlot-CocoaTouch.a library under the targets.
Now the problem is control is not coming to code blocks other than constructScatterPlot. Any suggestion would be appreciated.

Thanks,
San.
santosh_kumar is offline   Reply With Quote
Old 11-12-2010, 06:55 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Proper inclusion of CPLayerHostingView instance and adding graph to that instance solved the problems.

Thanks,
San
santosh_kumar is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone & ipod touch apps

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 345
10 members and 335 guests
7twenty7, chiataytuday, condor304, Creativ, Domele, dreamdash3, laureix68, LEARN2MAKE, mistergreen2011, Paul Slocum
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,660
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, laureix68
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:26 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0