PDA

View Full Version : OpenGL, mac os X



11-07-2001, 07:28 PM
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 `;' after `0.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 before `int'
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 of `glEnd'
main.m:160: conflicting types for `glEnd'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:1166: previous declaration of `glEnd'
main.m:160: warning: data definition has no type or storage class
main.m:161: parse error before `}'
main.m: In function `inner_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)

Gavin
11-08-2001, 03:16 AM
Its a bit hard to say without seeing some of the code, Looks like some of your headr/include stuff is messed up.

RobertSI
11-11-2001, 01:16 AM
NEHE has an updated and corrected version of how to use OpenGL and OSX on his website. Ckeck out Lesson 1.

dorbie
11-11-2001, 02:38 AM
What language are you using?

.m files with Illegal expression 'int'?