freeglut

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Wed Dec 12 03:23:00 GMT 2012


On Tue, 2012-12-11 at 06:52 -0800, Hisham Sueyllam wrote:
> I have the following C program which runs fine on mingw using :
> gcc -o cube MagicCubeFinal,cpp -lopengl32 -lglu32 -lfreeglut
> But I tried it on cygwin using:
> gcc -o cube MagicCubeFinal.cpp -lGl -lglu -lfreeglut

BTW, that should be -lGL and -lGLU (capitalized).

> I got a bunch of errors (unresolved references)
> but when I used glut instead of freeglut in the last parameter
> it compiled and linked fine

Correct, because that is how the library is named on *NIX systems.

> but when I ran it I got nothing

On *NIX systems, libGL/libGLU/libglut are GLX-based; you need a running
X server and properly set DISPLAY variable for the program to run.


Yaakov
Cygwin/X



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list