PDA

View Full Version : GCC in Mac OS X



dejitaru
05-31-2003, 12:57 PM
I am unable to compile any C++ programs with OpenGL libs.
The headers are found, but the compiler reports that the functions have not been declared.

Is there any way to compile OpenGL programs without using Project Builder?

shinpaughp
05-31-2003, 04:58 PM
Is it a linker error or compiler error? Can you show specific error(s)?

dejitaru
05-31-2003, 09:15 PM
ld: Undefined symbols:
DrawGLScene()
ReSizeGLScene(int, int)
InitGL()
_glutCreateWindow
_glutDisplayFunc
_glutInit
_glutInitDisplayMode
_glutInitWindowPosition
_glutInitWindowSize
_glutMainLoop
_glutReshapeFunc

john
06-01-2003, 07:03 PM
rhys (the mac guy here) says:
"you need to -framework opengl, or add framework in the project menu under system/library/opengl"

oh, and apparently that'll be $AUD50 for the info.

cheers
John

Gavin
06-04-2003, 04:12 AM
Did you check the mac site!? You can use codewarrior as well as command line