piaoyongren / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

can't compile my app, errors in UIView #237

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi everybody,

my xcode version is 3.2.4, and the iphone sdk version is 4.1,
i downloaded the 0.2.2 installer, 
i followed the steps mentioned in the readme for the sdk installer, except for 
the last one, coz i wanted to compile first (am i misunderstanding something 
here?)

here are the steps, copied from the readme file,
1. Copy the CorePlotSDK directory to ~/Library/SDKs/
2. Add to your project's .PCH file:
#import <CorePlot/CorePlot.h>
3. Open Project -> Edit Project Settings and for All Configurations:
    3a. Add to Additional SDKS: 
$HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
    3b. Add to Other Linker Flags:
-ObjC -all_load -lCorePlot 
4. Add the QuartzCore framework to the project.
5. Add a CPGraph to your application.

and it seems i can't compile my app,
the compiler generated 20 errors and 2 warnings,

all the errors are in UIView and UIApplication header files,
and the warnings are,
<command line>:1:0 <command line>:1:1: warning: 
"__IPHONE_OS_VERSION_MIN_REQUIRED" redefined
<command line>:1:0 <command line>:1:1: warning: this is the location of the 
previous definition

thanx in advance.

Original issue reported on code.google.com by saqr....@gmail.com on 28 Dec 2010 at 3:22

GoogleCodeExporter commented 8 years ago

Original comment by drewmcco...@mac.com on 8 Jan 2011 at 10:09