PDA

View Full Version : c compiling problem



Eclipsor
June 5th, 2006, 07:39 AM
Hi all. I'm trying to compile a program I'm doing for a uni assignment using a script given to us (see below). It worked in Breezy however in Dapper I am getting this error:

/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status


gcc $1.c -o $1 -I/usr/share/pvm3/include -L/usr/share/pvm3/lib/LINUX -L/usr/X11R6/lib -lpvm3 -lglut -lGL -l GLU -lXmu -lXi -lXext -lX11 -lm

I'm a bit of a linux noob so any help would be very much appreciated. Also, let me know if there is any more info I should provide. Thanks.

ps. I didn't do a straight upgrade so there might be some packages that I had installed on breezy that aren't there now but I've tried installing anything that looked like it might be needed.

Eclipsor
June 5th, 2006, 07:57 AM
update

Seems it works so far without that -lXmu section in the compile line. Can anyone tell me what this would do? thanks

Arndt
June 5th, 2006, 08:30 AM
update

Seems it works so far without that -lXmu section in the compile line. Can anyone tell me what this would do? thanks

The entry libxmu6 in Synaptic says "X miscellaneous utilities". It doesn't seem to include man pages, only a header file, but there are some functions in it called XmuNewArea etc. If you get an undefined symbol while linking, named something starting with Xmu, you know you'll need to get this package.

Eclipsor
June 6th, 2006, 09:40 AM
I had the libxmu6 package installed but I installed a few of the other dev packages and stuff and it works now. Thanks.