LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-28-2005, 12:03 PM   #1
sakr
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:

Quote:
/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 :

Quote:
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 12:05 PM.
 
Old 12-28-2005, 12:20 PM   #2
Ha1f
Member
 
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, 12:26 PM   #3
thompson42
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, 12:35 PM   #4
sakr
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.
 
  


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


All times are GMT -5. The time now is 10:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration