Suhaib Siddiqi wrote:
>
> MOTIF 2.x and higher needs you to link to libXp
> add -lXp to your linker.
Sorry bothering the DX list with this problem. However, I have
compiled other packages with OpenMotif, but only OpenDX seems
to stumble over the Xp libraries.
If somebody wants to help, then please read on.
I'm using XFree86 version 3.3.6-20 on a RedHat Linux
6.2. I have installed OpenMotif rpm's version 2.1.30.
I can't get the libXp linking right.
I have a dummy program (with empty body) myprog.c for
testing the link process:
g++ myprog.c -lXp
=> /usr/bin/ld: cannot find -lXp
collect2: ld returned 1 exit status
g++ -L/usr/X11R6/lib myprog.c -lXp
=> /usr/X11R6/lib/libXp.so: undefined reference to
`XGetErrorDatabaseText'
/usr/X11R6/lib/libXp.so: undefined reference to `XCloseDisplay'
/usr/X11R6/lib/libXp.so: undefined reference to `XDisplayString'
/usr/X11R6/lib/libXp.so: undefined reference to `XCreateSimpleWindow'
/usr/X11R6/lib/libXp.so: undefined reference to `XIfEvent'
[...snip...]
/usr/X11R6/lib/libXp.so: undefined reference to `XOpenDisplay'
/usr/X11R6/lib/libXp.so: undefined reference to `XRootWindowOfScreen'
collect2: ld returned 1 exit status
When I search for "libXp.a" and "libXp.so" I get:
/usr/X11R6/lib/libXp.a
and
/usr/X11R6/lib/libXp.so.6
/usr/X11R6/lib/libXp.so.6.2
/usr/X11R6/lib/libXp.so
/usr/i386-glibc20-linux/lib/libXp.so
/usr/i386-glibc20-linux/lib/libXp.so.6
/usr/i386-glibc20-linux/lib/libXp.so.6.2
/usr/i486-linux-libc5/lib/libXp.so.6.2
/usr/i486-linux-libc5/lib/libXp.so.6
Any idea what I need to do to link libXp correctly?
Thanks,
Rob.