What steps will reproduce the problem?
Make on the following application below:
CC=/usr/local/bin/arm-apple-darwin9-gcc
CXX=/usr/local/bin/arm-apple-darwin9-g++
LD=$(CC)
CFLAGS=-I/usr/local/lib/gcc/arm-apple-darwin9/4.2.1/include \
-isysroot /usr/local/iphone-sysroot
LDFLAGS=-framework CoreFoundation -framework Foundation -framework UIKit \
-framework OpenGLES \
-lobjc -bind_at_load -isysroot /usr/local/iphone-sysroot
all: HelloWorld.app
HelloWorld.app: HelloWorld Info.plist
mkdir -p HelloWorld.app
cp Info.plist HelloWorld Default.png icon.png HelloWorld.app/
HelloWorld: HelloWorld.o HelloWorldApp.o
$(LD) $(LDFLAGS) -o $@ $^
%.o: %.m
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
clean:
rm -rf *.o HelloWorld HelloWorld.app
Here is the error:
/usr/local/bin/arm-apple-darwin9-gcc -c
-I/usr/local/lib/gcc/arm-apple-darwin9/4.2.1/include -isysroot
/usr/local/iphone-sysroot HelloWorld.m -o HelloWorld.o
In file included from HelloWorldApp.h:11,
from HelloWorld.m:11:
/usr/local/iphone-sysroot/usr/include/OpenGLES/EAGL.h:27: error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'EAGLRenderingAPI'
/usr/local/iphone-sysroot/usr/include/OpenGLES/EAGL.h:59: error: expected
')' before 'EAGLRenderingAPI'
/usr/local/iphone-sysroot/usr/include/OpenGLES/EAGL.h:60: error: expected
')' before 'EAGLRenderingAPI'
/usr/local/iphone-sysroot/usr/include/OpenGLES/EAGL.h:65: error: expected
specifier-qualifier-list before 'EAGLRenderingAPI'
make: *** [HelloWorld.o] Error 1
What is the expected output? What do you see instead?
Successful build of an application that uses the iphone opengl libraries.
What version of the product are you using? On what operating system?
CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
Original issue reported on code.google.com by berlin.b...@gmail.com on 3 Sep 2009 at 3:48
Original issue reported on code.google.com by
berlin.b...@gmail.com
on 3 Sep 2009 at 3:48