This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 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]

Re: Re: compiling Motif (Lesstif) program


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!


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