This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Re: compiling Motif (Lesstif) program
- From: Klaus dot Moschner at gmx dot de
- To: cygwin-xfree at cygwin dot com, Andrew dot Markebo at telia dot com
- Date: Fri, 7 Mar 2003 09:12:39 +0100 (MET)
- Subject: Re: Re: compiling Motif (Lesstif) program
- References: <1047024339.757.ezmlm@cygwin.com>
- Reply-to: cygwin-xfree at cygwin dot com
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
Klaus
/ Klaus dot Moschner at gmx dot de 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?
/Andy
--
The eye of the beholder rests on the beauty!
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!