LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2003, 11:20 PM   #1
Kitaran
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9.0
Posts: 12

Rep: Reputation: 0
OpenGL problem


Hi, I'm trying to teach myself OpenGL from the red book but im running into trouble. I try to compile with redhat 9 using this compile line

gcc -o hello hello.o -L/usr/X11R6/lib -L/usr/X11R6/lib/modules/extensions/ -lGL -lX11 -lGLU -lglut -lglx -lXi -lXm



and it gives me this error:
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `CreateNewResourceType'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `FatalError'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to
`glXBindChannelToWindowSGIX'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86free'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `CreateNewResourceClass'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86usleep'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86exit'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86fclose'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86exp'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86sleep'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `WriteToClient'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86open'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86strcat'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86memset'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86strtok'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86strlen'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `xf86atan'
/usr/X11R6/lib/modules/extensions//libglx.so: undefined reference to `Xrealloc'


and it goes on for awhile like that. What library am i missing? My code includes look like this.
#include <GL/glut.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/X.h>
#include <X11/Xutil.h>


#include <GL/glx.h>
#include <GL/glu.h>
#include <GL/gl.h>


i know some of those should be redundant because of including GL/glut.h

THanks for the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenGL problem dangerousdave Linux - Newbie 1 02-19-2005 02:19 PM
opengl problem im_ka Fedora 1 02-24-2004 04:30 PM
opengl problem im_ka Linux - General 1 02-24-2004 04:27 PM
Changing from MESA OpenGL to ATI OpenGL tillyoubreakit Linux - Hardware 19 10-07-2003 08:32 PM
Yet Another Problem With Opengl blu35cr33n Linux - Software 4 04-23-2003 04:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration