Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-28-2005, 11:03 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
first opengl programm

hello everybody
thatī s my first post here, and i hope that i will find an answer.
i try to run my first opengl program, and i just copy a simple source code but i get following errors at linking it:

/usr/lib//libglut.a(glut_cmap.o)(.text+0x3a8):In function '__glutSetupColormap':
: undefined reference to 'XmuLookupStandardColormap'
collect2: ld returned 1 exit status

here is my (simple) makefile :

all : test

test : opengltest.o
g++ -o test opengltest.o -L /usr/lib/ -lGLU -lglut

opengltest.o : opengltest.cpp
g++ -c opengltest.cpp

Last edited by sakr; 12-28-2005 at 11:05 AM.
Old 12-28-2005, 11:20 AM   #2
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
Well. I dont know opengl, but I know a bit of C++ and C, and it looks like your problem is that 'XmuLookupStandardColormap' isnt defined before its called.
Old 12-28-2005, 11:26 AM   #3
LQ Newbie
Registered: Dec 2005
Location: Connecticut, USA
Distribution: Gentoo
Posts: 17

Rep: Reputation: 0
I expect you will also need to link against at least some of these libraries.

-lGLw -lGL -lXm -lXt -lX11
Old 12-28-2005, 11:35 AM   #4
LQ Newbie
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
thank you all
i resolve the problem using the library -lXm, the programm functions now.


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
how to compile programm for suse 9.3? moog Linux - Newbie 6 10-16-2005 07:42 PM
Porting a Carbon (OS X) programm to OpenGL (Linux) Geronimo Programming 3 04-20-2005 10:49 AM
Programm like DriveImage? morto Linux - Software 2 02-01-2005 09:18 AM
how to send a pw to a programm?! stefanero Programming 3 04-19-2004 02:25 PM
What Chess Programm Should I Use?? Electronkz Linux - Software 2 04-15-2004 09:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 AM.

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