On Thu, 6 Jul 2000 20:04:34 +0200, efi wrote:

>hellow
>I ask for your help .
>I have problem in running apps on lesstif version 0.91.4 that I installed with your 
instruction.
>My compilation line was 
>cc -o h2 teach3.c -lXm -lXt -lX11 -lm
>teach3.c runs at my university's computers with motif.
>I got these errors:
>teach3.c:infunction 'main':
>teach3.c:49:warning:return type
>of 'main' is not 'int'
>usr/bin/ld:can't find -lXt
>collect2:ld returned 1 exit status
>the Xwindow was installed with the linux installation.
>I don't know whats wrong 
>I ask for your help and advice.
>thanks again.
>efi klomer 
>

That's a kind of FAQ (frequently asked question).
Such things are listed on FAQs for X11, Xt and probably Motif.
Some of them may be referenced on www.lesstif.org/links.html

We also have our own FAQ at www.lesstif.org/links.html/FAQ.html

The interesting part is when it comes to the details ...
try looking in /usr/X11R6/lib for a file like libXt.so
and add "-L/usr/X11/lib" to the linker command.

  cc -o h2 teach3.c -lXm -L/usr/X11R6/lib -lXt -lX11 -lm

------------------------------------------------------------------
  Alexander Mai
  [EMAIL PROTECTED]
------------------------------------------------------------------


Reply via email to