Red Hat Bugzilla – Bug 158378
Source fails to link against glut
Last modified: 2007-11-30 17:11:06 EST
Description of problem:
When linking against freeglut, glViewPort is not undefined. I have checked the
GL.so file and glViewPort does have a symbol.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compile the attachment using -lm -lGL -lGLU -lglut -lX11 -L/usr/X11R6/lib
/tmp/ccgoPbqG.o(.text+0x75): In function `reshape':
cube.c: undefined reference to `glViewPort'
collect2: ld returned 1 exit status
Created attachment 114662 [details]
Source code used to generate the reported error
File a bug report in freeglut's bug tracker on sourceforge, and paste the
URL to the report here, and we'll track the issue. If freeglut developers
determine it to be a freeglut bug and provide a patch to fix it, we'll
consider it for inclusion in a future update.
Thanks in advance.
Setting status to "NEEDINFO", awaiting upstream bug URL.
Actually after reviewing this again briefly, this is a bug in your code,
not a bug in freeglut.
You're misnaming function calls. In the future, please use a public mailing
list for assistance prior to filing a bug report.
Setting status to "NOTABUG".