This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

___getreent error when compiling OpenGL/SDL program using gcc


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]