problem compiling code with OpenGL calls (update)
Sun Sep 18 02:42:00 GMT 2005
Well it looks like user error was to blame for my
After a couple of hours of searching, I was able to
compile using the following:
gcc example.c -o example -lglu32 -lopengl32 -lglut
Now, my attempt to execute the program has hit a snag,
I'm seeing the following error:
-bash:example.exe: command not found.
(example.exe is definately in the directory)
--- William Wallace <firstname.lastname@example.org>
> I trying to compile a simple .c program that I
> downloaded from sgi.com. I'm using the following to
> compile the program (works on my UNIX box...):
> gcc example.c -lglut -lGL -lGLU -L/usr/X11R6/lib
> -lXmu -lm
> I get a slew of compile errors, for every OpenGL api
> call..For instance:
> undefined reference to `_glClearColor@16'
> I noticed something a bit odd. The documentation
> states that /usr/include/GL should contain the
> glut.h and gl.h, but I ONLY have glut.h.
> I took a look on my UNIX box at the missing gl.h
> and it turns out that all of the prototypes for
> calls are in gl.h.
> Any suggestions? I'm puzzled as to why the glut
> is there, but the opengl stuff is not..
> Thanks, Scott
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> Unsubscribe info:
> Problem reports:
> Documentation: http://x.cygwin.com/docs/
> FAQ: http://x.cygwin.com/docs/faq/
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin-xfree