This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Ported X11 soft from Solaris
- From: Max Buvry <Max dot Buvry at enseeiht dot fr>
- To: cygwin-xfree at cygwin dot com
- Date: Sat, 26 Oct 2002 10:33:17 +0200
- Subject: Ported X11 soft from Solaris
- Reply-to: cygwin-xfree at cygwin dot com
Hi,
I use cygwin/xfree under XP and I attempt to port a graphic application
which runs under Solaris 7.
The beginning of my makefile is :
CC = gcc
COPT= -O -c -g -Wall
LIB = -lSM -lXpm -lXaw -lXmu -lXt -lX11 -lXext -lm -lc -lpq
CFLAGS = -I/usr/include/ -I/usr/X11R6/include/
LDFLAGS = -L/usr/X11R6/lib -L/usr/lib
The adresses of the include files and the libraries is correct for my
installation.
Under Solaris, I don't need the SM and Xpm library. I added it under
cygwin because of
the following messages.
My 2 problems is shown by the following make. The first problem is a
warning but
I don't understand it. The second is a problem of unreseolved references
but I don't
find the correction.
in advance, thanks for your help
mb
$ make
gcc -O -c -g -Wall -I/usr/include/ -I/usr/X11R6/include/
gestion_scores.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -L/usr/X11R6/lib -L/usr/lib -o Tetris dep_horiz.o interface_X.o
main.o boutons.o tetris.o Scale.o gestion_scores.o rotation.o colorer.o
lignes_pleines.o -lSM
-lXpm -lXaw -lXmu -lXt -lX11 -lXext -lm -lc -lpq
/usr/X11R6/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined
reference to `_XpmReadFileToPixmap'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3536):Shell.c: undefined
reference to `_SmcCloseConnection'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3617):Shell.c: undefined
reference to `_SmcModifyCallbacks'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3626):Shell.c: undefined
reference to `_SmcClientID'
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3686):Shell.c: undefined
reference to `_SmcOpenConnection