Developers

Syndicate content

Undefined References (linux, i386)

In my previous thread I had some header reference problems. Those were partially resolved with,

gcc -L/usr/X11R6/lib -lXm -lXt -X11 -o label label.c

However, I am now receiving these compilation errors. (I know my code is fine, it compiled and ran fine on another machine).

/usr/X11R6/lib/libXm.so undefined reference to `XpGetDocumentData`
/usr/X11R6/lib/libXm.so undefined reference to `XpGetPageDimensions`
/usr/X11R6/lib/libXm.so undefined reference to `XpGetOneAttribute`
/usr/X11R6/lib/libXm.so undefined reference to `XShapeCombineRectangles`

Header files References (linux)

I am attempting to compile some simple applications, such as creating a label etc, but I am consistently receiving the following error, when I am including these header files in my code.

#include
#include

--------Error----------
>gcc -I/usr/X11R6/include -o label label.c -lXm -lXt -lX11
/usr/bin/ld cannot find -lXm
collect2 ld returned 1 exit status

---------End--------------

I also tried to create symbolic links to the directories such as "Xm" etc in /usr/include, but with no luck.

Any ideas would be greatly appreciated.

libuil.so 2 on i386 arch (linux)

When attempting to install the developer version rpm of Opensource Motif, there is one commercial library, libuil.so (2) (Motif User Interface Language), that is required. Since it is a commerical library it is seemingly impossible to find it. If someone got an idea where to obtain it, please post it.

Compiling demos

On a RedHat 6.1 box, when I run xmkmf -a in a demo directory I get a missing separator error. For example, in the
/usr/X11R6/xmdemos/lib/XmCxx directory
[root@prtpp0jq XmCxx]# xmkmf -a
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
make Makefiles
Makefile780 *** missing separator. Stop.
I will be greatful for any help.

Forum Subject..

Users of the Motif toolkit that need help programming a
feature or solving coding problems