salah1979 / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

Compiling Example Three from iPhone Open Dev. Book gives error #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compiling the third example in the book.
2.
3.

What is the expected output? What do you see instead?

Should be a happy compile. But, instead I get:

/usr/local/bin/arm-apple-darwin-ld: Undefined symbols:
_CGColorCreate
_CGColorSpaceCreateWithName
_kCGColorSpaceGenericRGB
collect2: ld returned 1 exit status
make: *** [MyExample] Error 1

What version of the product are you using? On what operating system?

4.2 on Ubuntu Gutsy Gibon 7.10

Please provide any additional information below.

Example 1 & 2 compiled successfully and ran on the iphone.

Original issue reported on code.google.com by dou...@gmail.com on 16 Apr 2008 at 4:06

GoogleCodeExporter commented 8 years ago
'-framework CoreGraphics' is missing from LDFLAGS in the makefile. (Not sure if 
that step is in the book.)

Original comment by august.j...@gmail.com on 17 Apr 2008 at 3:25