This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

linking problem


gcc Xhello.c -I /usr/X11R6/include -L /usr/X11R6/lib/ -lXm -lXt -lX11

compiles without any messages.

ldd a.out
libXm.so.3 => not found
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40028000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40075000)
libc.so.6 => /lib/i686/libc.so.6 (0x40155000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40285000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4028e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


libXm.so.3 is available in the library path /usr/X11R6/lib/libXm.s0.3




it does make an out file but at the runtime libXm.so.3 is not found. I'm learning
motif the problem is about linking the library.

I'm using redhat linux-2.4.2-2
with gcc 2.96 (20000731)





Bingo cannon is firing hard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]