divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CorePlot 64-bit 10.6 LLVM 3.0 #391

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've added the binary only as a 'Copy bundle resources' build phase.

#import <CorePlot/CorePlot.h>
@property (assign) IBOutlet CPTGraphHostingView *graphHostingView;
@property (retain) CPTXYGraph *graph;

    _graph = [[CPTXYGraph alloc] initWithFrame:CGRectZero];
    [_graphHostingView setHostedGraph:_graph];

    CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *)_graph.defaultPlotSpace;
    [plotSpace setYRange:[CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0)
                                                      length:CPTDecimalFromFloat(150.0f)]];
    [plotSpace setXRange:[CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0)
                                                      length:CPTDecimalFromFloat(12.0f)]];

Undefined symbols for architecture x86_64:
  "_CPTDecimalFromFloat", referenced from:
      -[AppDelegate applicationDidFinishLaunching:] in AppDelegate.o
  "_OBJC_CLASS_$_CPTXYGraph", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_CPTPlotRange", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Original issue reported on code.google.com by m...@max-baeumle.de on 4 Jan 2012 at 5:23

GoogleCodeExporter commented 9 years ago
Which version of Core Plot are you using? One of the releases or are you 
building from the latest source?

Original comment by eskr...@mac.com on 5 Jan 2012 at 2:14

GoogleCodeExporter commented 9 years ago
I guess I've figured it out:
The binary was located in Resources folder in the app bundle.
After making sure it was in Frameworks everything's fine.
I was using 0.9 release.

Original comment by m...@max-baeumle.de on 5 Jan 2012 at 10:44

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 5 Jan 2012 at 11:59