> gcc -ohello -I/usr/local/LessTif/Motif1.2/include -I/usr/X11R6/include
> -L/usr/X11R6/lib -L/usr/local/LessTif/Motif2.0/lib -lXt -lXm -lX11
> hello.c

Marcus already wrote about library order.

Two other remarks :
- you use include files from the 1.2 version of LessTif, and link with the 2.0 library
  don't do that. Instead change e.g. to the 2.0 include files - this is on the compiler
  command line above.
- your -L.../Motif2.0/lib makes me wonder which library will be used at run time.
  If it is the 1.2 version then again this is trouble.
  Check "ldd hello", and make sure it mentions the 2.0 version of the library.

        Danny

Reply via email to