Dear LessTif and Geomview People.
I am trying to compile a very simple Motif Test Program (generated by
configure script of Geomview package):
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char XmCreateForm();
int main() {
XmCreateForm()
; return 0; }
.
confdefs.h looks as follows:
#define PACKAGE "geomview"
#define VERSION "1.8.1"
#define YYTEXT_POINTER 1
#define HAVE_XMU 1
My build command:
gcc -o conftest conftest.c -L/usr/local/lib -lXm -L/usr/X11R6/lib -lSM -lICE -lXt
-lXext -lX11
... and gcc complains in the following way:
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x349a):Shell.c: undefined reference to
`SmcCloseConnection'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3577):Shell.c: undefined reference to
`SmcModifyCallbacks'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3586):Shell.c: undefined reference to
`SmcClientID'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x35e6):Shell.c: undefined reference to
`SmcOpenConnection'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3716):Shell.c: undefined reference to
`SmcGetIceConnection'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x372d):Shell.c: undefined reference to
`IceConnectionNumber'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3cb1):Shell.c: undefined reference to
`SmcSetProperties'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3d44):Shell.c: undefined reference to
`SmcSetProperties'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3dad):Shell.c: undefined reference to
`SmcDeleteProperties'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3ddc):Shell.c: undefined reference to
`SmcGetIceConnection'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3de5):Shell.c: undefined reference to
`IceProcessMessages'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3e86):Shell.c: undefined reference to
`SmcSaveYourselfDone'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3fea):Shell.c: undefined reference to
`SmcInteractDone'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x410b):Shell.c: undefined reference to
`SmcSaveYourselfDone'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x42bb):Shell.c: undefined reference to
`SmcInteractRequest'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x4356):Shell.c: undefined reference to
`SmcInteractDone'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x43a2):Shell.c: undefined reference to
`SmcRequestSaveYourselfPhase2'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x43c5):Shell.c: undefined reference to
`SmcSaveYourselfDone'
collect2: ld returned 1 exit status
Because of the above problem, configure claims it cannot find Motif nor LessTif and
aborts.
Therefore I am not able to compile Geomview on my laptop.
By the way, on my AIX4.3.2-box I got a similar problem: configure claimed not to be
able to find Motif/LessTif.
My PC has Intel P2 CPU under WinNT4.0. I installed/compiled
cygwin(setup#2.125.2.5) + Xfree86-4.1.0 + lesstif-0.93.14 .
Xfree86 does run, as well as mwm.
I was able to build examples from lesstif-0.93.14/test/Xm/scrolledwindow, and those
test*.exe did run ....
Could You help me please?
Thank You in advance.
Best regards,
Piotr Kozaczewski
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif