Problems with Motif 2.0 ELF and Slackware 3.0

Problems with Motif 2.0 ELF and Slackware 3.0

Post by Matthias Vi » Sat, 23 Dec 1995 04:00:00



Hi there,
I
I upgraded to Slackware 3.0 ELF with gcc 2.7.0. When I try
to compile code that contains Motif functions, make sais
thatatthere are undefined references to all the Motif functions.
I checked all the links etc they are okay. Does it depend on the
libraries in Slackware. I use Motif 2.0 with ELF support from Metrolink
Any help is appreciated


 
 
 

Problems with Motif 2.0 ELF and Slackware 3.0

Post by none » Fri, 29 Dec 1995 04:00:00


Quote:> I upgraded to Slackware 3.0 ELF with gcc 2.7.0. When I try
> to compile code that contains Motif functions, make says
> thatatthere are undefined references to all the Motif functions.

I found that after upgrading I needed to insert -lXext in my link line:

gcc file.c -L/usr/X11R6/lib -lMrm -lXm -lXext -lXt -lSM -lICE -lX11

To see whether the linker is finding any libraries and what it is
doing with them, run the linker with --verbose, when compiling.
I find a convenient way to do this is first run gcc -v which
outputs the command gcc uses when invoking ld.  Copy this command
and insert the --verbose flag at the start of the arg list.