Hi all,
This is my first post- I hope I'm putting it in the right place. I'm trying to compile an example c++ program. I don't know exactly which version of gcc I'm using .. it's whatever came with FC6. When I compile the output is:
Quote:
[Beowulf@localhost A01]$ make clean
Cleaning up ...
[Beowulf@localhost A01]$ make
Making dependency for file A01app.cc ...
.
.
.
Compiling A01Trajectory.cc ...
Creating/replacing object files in /home/Beowulf/g4work/tmp/Linux-g++/A01app/libA01app.a ...
ar: creating /home/Beowulf/g4work/tmp/Linux-g++/A01app/libA01app.a
Compiling A01app.cc ...
Using granular libraries ...
Linking A01app ...
/usr/bin/ld: cannot find -lXm
collect2: ld returned 1 exit status
make: *** [/home/Beowulf/g4work/bin/Linux-g++/A01app] Error 1
|
I've scoured this website and google to no avail. A lot of people have a similar problem but the solutions (slightly modified for -lXm) don't seem to work. I saw on one post to install libXp-devel. I did such by using:
Quote:
[root@localhost bin]# yum install libXp-devel
|
I've also installed compat-libstdc++-33 to combat another install error by typing:
Quote:
[root@localhost ~]# yum install compat-libstdc++-33
|
I got the idea from another thread to try installing libXm.so.3. I typed and got in response:
Quote:
[root@localhost usr]# yum whatprovides libXm.so.3
Loading "priorities" plugin
Loading "installonlyn" plugin
No Matches found
|
As per another suggestion I have tried to install openmotif (honestly, I don't know what this is).
I'm a fairly new Linux user and have no more ideas of what to do. Any thoughts? I'm hope I included all the needed information .. if not I'll be happy to include more.
Thanks in advance!