OpenGL, mac os X

Okay, so what compiles and may run at school, will not compile and run on application builder at home, i’m getting strange and stupid looking linking errors, anyone that can offer any advice based on this? : warning: <helix>helix.app depends on itself
…updating 10 target(s)…
BuildPhase helix.app
Completed phase <CopyHeaders> for helix.app
Cp /Users/vcr/helix/build/helix.app/Contents/Info.plist
Cp /Users/vcr/helix/build/helix.app/Contents/pbdevelopment.plist
BuildPhase helix.app
Completed phase <CopyResources> for helix.app
CompileC /Users/vcr/helix/build/intermediates/helix.build/Objects/ppc/main.o
main.m:155: illegal expression, found int' main.m:155: illegal statement, missing)’ after num_slices' main.m:155: illegal statement, missing;’ after ++' main.m:170: illegal statement, missing;’ after point3' main.m:170: illegal expression, found{’
main.m:170: illegal statement, missing ;' after0.0’
main.m:176: illegal function prototype, found 0x000fffff' main.m:176: illegal function definition, found)’
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
main.m: In function drawUnitCircle': main.m:155: parse error beforeint’
main.m:155: i' undeclared (first use in this function) main.m:155: (Each undeclared identifier is reported only once main.m:155: for each function it appears in.) main.m:155: warning: statement with no effect main.m:155: parse error before)’
main.m: At top level:
main.m:160: warning: type defaults to int' in declaration ofglEnd’
main.m:160: conflicting types for glEnd' /System/Library/Frameworks/OpenGL.framework/Headers/gl.h:1166: previous declaration ofglEnd’
main.m:160: warning: data definition has no type or storage class
main.m:161: parse error before }' main.m: In functioninner_ring’:
main.m:170: parse error before a' main.m:191:a’ undeclared (first use in this function)
main.m:192: b' undeclared (first use in this function) main.m:193:c’ undeclared (first use in this function)
main.m:194: `d’ undeclared (first use in this function)

Its a bit hard to say without seeing some of the code, Looks like some of your headr/include stuff is messed up.

NEHE has an updated and corrected version of how to use OpenGL and OSX on his website. Ckeck out Lesson 1.

What language are you using?

.m files with Illegal expression ‘int’?