Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

RH 9.0 +glut link problem

 
   Soft32 Home -> Linux -> Development RSS
Next:  download discountinued redhat-betas?  
Author Message
GBlair

External


Since: Sep 18, 2003
Posts: 1



(Msg. 1) Posted: Thu Sep 18, 2003 7:09 am
Post subject: RH 9.0 +glut link problem
Archived from groups: linux>redhat>devel (more info?)

All my open GL code that uses the glut library fails to link
under RH 9.0. It works fine under RH 8.0.

Lib glut can't find some basic X functions. Does anyone know
where there are found or what the correct library to link with
-lglut is?

g++ *.cpp -o x -lGL -lGLU -lglut
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XGetExtensionVersion'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XFreeDeviceList'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XQueryDeviceState'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XListInputDevices'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XFreeDeviceState'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XOpenDevice'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XmuLookupStandardColormap'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `XSelectExtensionEvent'
collect2: ld returned 1 exit status

RH 9.0 knows a little about the missing functions. For example
'man XOpenDevice' works just fine.

The problem is not related to c++. I have the same problem
under c.

Please copy all responses to my gblair RemoveThis @sympatico.ca email address.

Thanks,
Greg Blair
Toronto
Back to top
Login to vote
Rex Dieter

External


Since: Aug 19, 2004
Posts: 212



(Msg. 2) Posted: Thu Sep 18, 2003 9:27 am
Post subject: Re: RH 9.0 +glut link problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

GBlair wrote:

> All my open GL code that uses the glut library fails to link
> under RH 9.0. It works fine under RH 8.0.
>
> Lib glut can't find some basic X functions. Does anyone know
> where there are found or what the correct library to link with
> -lglut is?
>
> g++ *.cpp -o x -lGL -lGLU -lglut
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:

Try g++ *.cpp -o x -lGL -lGLU -lglut -lXi

Before you go blaming redhat for missing X function, do a quick
cd /usr/X11R6/lib
nm *.so *.a | grep "missingfunction"
and then link against the found library.

-- Rex
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ftp - problem - Hi, I'm progressing in my setup of the wu-ftpd daemon. Now I can log in, the ftpd does a chroot to my home ..

problem with getch() with gcc - I am trying to use getch() in a terminal app. In curses.h getch() is first declared as: extern NCURSES_EXPORT int..

Hi..Challenging problem and doubt - Hi, First of all, I would like to thankful to you for giving good guidelines and encouragement to solve my problem...

"Thundering Herd" problem on Lynux - I'm development server app on Linux (Redhat, kernel 2.4.21-4.ELsmp), where multiple child processes do simultaneous..

kernel upgrade boot problem - Please Help - All, I installed a new copy of Fedora Core 2 on a Dell GX280 with and 80 Gig SATA disk drive. Everything installed..

funny problem with sleep (syscall as well as command) .... - Hi! I have a simple program: /**********************************/ #include <stdio.h> #include <stdlib.h> ...
       Soft32 Home -> Linux -> Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]