Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Authentication-Warning: kruuna.Helsinki.FI: mstrandm owned process doing -bs Date: Fri, 12 Jan 2001 16:12:59 +0200 (EET) From: Markku Strandman To: Subject: Compiling OpenGL applications Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I just managed to make the import library and compile some code which uses wgl but I still have some problems: When I try to compile with -mwindows I get: --------- /usr/bin/ld: warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000 --------- Compiling with -mno-cygwin gives following errors: --------- In file included from wgl.c:6: /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/GL/gl.h:44: warning: `APIENTRY' redefined /usr/include/w32api/windef.h:85: warning: this is the location of the previous definition --------- and lots of something like this: --------- /cygdrive/c/WINDOWS/TEMP/ccRyOrHc.o(.text+0x495):wgl.c: undefined reference to `glViewport' /cygdrive/c/WINDOWS/TEMP/ccRyOrHc.o(.text+0x4b7):wgl.c: undefined reference to `glMatrixMode' /cygdrive/c/WINDOWS/TEMP/ccRyOrHc.o(.text+0x4bf):wgl.c: undefined reference to `glLoadIdentity' /cygdrive/c/WINDOWS/TEMP/ccRyOrHc.o(.text+0x4f1):wgl.c: undefined reference to `gluPerspective' --------- Without these switches everything works fine. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple