compiling Motif (Lesstif) program
Fri Mar 7 08:17:00 GMT 2003

Hi Andrew,

this missing -lSM was part of it.
It still doesn't link correctly and this is the output now:
$ gcc -c simple.c -o simple.o  -I /usr/X11R6/include -L /usr/X11R6/lib/

$ gcc simple.o -o simple  -I /usr/X11R6/include -L /usr/X11R6/lib/ -lXm -lXt
-lSM -lX11
/usr/X11R6/lib//libXt.a(Shell.o)(.text+0x37cd):Shell.c: undefined reference
to `_IceConnectionNumber'
/usr/X11R6/lib//libXt.a(Shell.o)(.text+0x3e85):Shell.c: undefined reference
to `_IceProcessMessages'
collect2: ld returned 1 exit status


/ wrote:
| Hi,
| I just try learning X and Motif.
| I have a very simple program:
| ---snip---
[... my snip ...]
| ---snip---
| and try to compile it using:
| gcc -o simple simple.c -I /usr/X11R6/include/ -L /usr/X11R6/lib/ -lXm -lXt
| -lX11

Could it be a missing -lSM before -lX11?


 The eye of the beholder rests on the beauty!

+++ GMX - Mail, Messaging & more +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!

More information about the Cygwin-xfree mailing list