delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <20031125120900.45258.qmail@web60002.mail.yahoo.com> |
Date: | Tue, 25 Nov 2003 04:09:00 -0800 (PST) |
From: | Bob E <achillea88 AT yahoo DOT com> |
Subject: | ___getreent error when compiling OpenGL/SDL program using gcc |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Hello, I have been trying to compile a SDL/OpenGL program. The program works under linux, and I am able to get single-file OpenGL/SDL programs to compile and run with cygwin. When linking multiple files however, I get this strange errors: gcc -g view3ds.o gl_video.o sdl_event.o sdl_video.o object.o -o view3ds -lgl ut32 -lopengl32 -lGLU32 -lopengl32 `sdl-config --cflags --libs` -lm view3ds.o(.text+0x94): In function `resizeWindow': /home/Bob/prog/sdl2/view3ds.c:37: undefined reference to `_gluPerspective' view3ds.o(.text+0x3ca): In function `DrawScene': /home/Bob/prog/sdl2/view3ds.c:93: undefined reference to `_gluErrorString' view3ds.o(.text+0x3d2):/home/Bob/prog/sdl2/view3ds.c:94: undefined reference to `___getreent' view3ds.o(.text+0x7a2): In function `main': /home/Bob/prog/sdl2/view3ds.c:160: undefined reference to `___getreent' view3ds.o(.text+0x7dc):/home/Bob/prog/sdl2/view3ds.c:167: undefined reference to `___getreent' view3ds.o(.text+0x809):/home/Bob/prog/sdl2/view3ds.c:174: undefined reference to `___getreent' view3ds.o(.text+0x841):/home/Bob/prog/sdl2/view3ds.c:183: undefined reference to `___getreent' I am using gcc 3.3.1 I find it strange that functions such as gluPerspective will compile/link fine in a single file program, but fail to work in project with multiple source files. Anyone have any suggestions? Thanks, Bob __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |