This is the mail archive of the
mailing list for the Cygwin project.
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple