X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_44,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Mon, 1 Jun 2009 20:32:57 +0900 Message-ID: <7f18338e0906010432m706b69b6r3c14375e9a540b60@mail.gmail.com> Subject: Binding OpenGL and gcc From: Christina McQuirk To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, I posted earlier about having problems linking opengle and dlls, but now that is fixed (Thanx for your help!). =A0However, now my code runs without error, but no display window opens. =A0I have transfered my code to a lab-mate's computer and it runs and opens a display window, but mine does not. CODE BLOCK #include #include #include #include #include #include #include #include #include #include //#include void display(void) { } int main (int argc,char *argv[]) { glutInit(&argc, argv); glutCreateWindow(argv[0]); glutDisplayFunc(display); glutMainLoop(); return 0; } MAKEFILE BLOCK CC =3D g++ CFLAGS =3D -Wall -O2 -fno-exceptions -fno-rtti -I/usr/X11R6/include -I/usr/include/opengl #LDLIBS =3D -lm -L spd/lib lspd LDLIBS =3D -lm -L spd/lib -lspd -L/usr/local/lib -lgsl -lgslcblas -L/lib -lglut -lGLU -lGL -DWIN32 -lglut32 -lglu32 -lopengl32 -L/usr/X11R6/lib #MESALIBS =3D -lglui -lglut32 -lglu32 -lopengl32 -L/lib -lglui -L/usr/X11R6= /lib #LOADLIBS =3D -DWIN32 -lglut32 -lglu32 -lopengl32 -L/lib -lglut -lGLU -lGL SRC =3D test_window.cpp\ OBJ =3D test_window.o\ TARGET =3D run #all : $(TARGET) $(TARGET) : $(OBJ) $(CC) $(CFLAGS) $(D_CFLAGS) -o $@ $^ $(INLIBS) $(LDLIBS) .cpp.o : $(CC) $(CFLAGS) $(D_CFLAGS) $(INLIBS) -o $@ -c $< .c.o : $(CC) $(CFLAGS) $(D_CFLAGS) $(INLIBS) -o $@ -c $< clean : -@rm -f $(OBJ) $(TARGET) BASH OUTPUT [YOUR-7E1386FF39:~] >> make clean [YOUR-7E1386FF39:~] >> make g++ -Wall -O2 -fno-exceptions -fno-rtti -I/usr/X11R6/include -I/usr/include= /open gl -o test_window.o -c test_window.cpp /usr/include/opengl/GL/glut.h:562: warning: 'int glutCreateMenu_ATEXIT_HACK= (void (*)(int))' defined but not used g++ -Wall -O2 -fno-exceptions -fno-rtti -I/usr/X11R6/include -I/usr/include= /open gl -o run test_window.o -lm -L spd/lib -lspd -L/usr/local/lib -lgsl -lgsl= cblas -L/lib -lglut -lGLU -lGL -DWIN32 -lglut32 -lglu32 -lopengl32 -L/usr/X11R6/= lib [YOUR-7E1386FF39:~] >> -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/