This is the mail archive of the cygwin-xfree 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]

XInternAtom XRectInRegion ... not found ... problem with the make file?


Hi, I am getting errors about xlib components missing. Running find gives me this:

/> find * | grep XInternAtom
usr/X11R6/lib/X11/doc/html/XInternAtom.3.html
usr/X11R6/lib/X11/doc/html/XInternAtoms.3.html
usr/X11R6/man/man3/XInternAtom.3
usr/X11R6/man/man3/XInternAtoms.3

so it finds the docs, but not the source files.

Someone said that maybe my X lib specification might be wrong
but this looks ok to me:
gcc -Wall -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXpm -lXext xsimpsons.o toon.o -o xsimpsons



I tried looking through Cygwin docs, on internet... and on internet i found out it belongs to XLIB "group", but the closest Cygwin has is "xorg-x11-libs-data-6.8.99.901-1.tar" which doesn't contain those files


This still happens after I manually downloaded the following and looked in there too -- no luck
-------------------
-rwx------ 1 Owner None 5500486 Nov 22 00:45 xorg-x11-base-6.8.99.901-1-src.tar
-rwx------ 1 Owner None 2836895 Nov 22 00:45 xorg-x11-bin-dlls-6.8.99.901-1-src.tar
-rwx------ 1 Owner None 1661595 Nov 22 00:45 xorg-x11-devel-6.8.99.901-1.tar
-rwx------ 1 Owner None 536374 Nov 22 00:45 xorg-x11-etc-6.8.99.901-1.tar.tar
-rwx------ 1 Owner None 195890 Nov 22 00:45 xorg-x11-libs-data-6.8.99.901-1.tar
-rwx------ 1 Owner None 2754734 Nov 22 00:45 xorg-x11-xwin-6.8.99.901-1-src.tar
-------------------


-------------------
This is the compiling errors:
-------------------
/home/Owner/games/simp> make
gcc -Wall -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXpm -lXext xsimpsons.o toon.o -o xsimpsons
toon.o:toon.c:(.text+0x47): undefined reference to `_XInternAtom'
toon.o:toon.c:(.text+0x7a): undefined reference to `_XQueryTree'
toon.o:toon.c:(.text+0x105): undefined reference to `_XGetWindowProperty'
toon.o:toon.c:(.text+0x136): undefined reference to `_XFree'
toon.o:toon.c:(.text+0x1a3): undefined reference to `_XOpenDisplay'
toon.o:toon.c:(.text+0x31c): undefined reference to `_XCreateGC'
toon.o:toon.c:(.text+0x326): undefined reference to `_XCreateRegion'
toon.o:toon.c:(.text+0x349): undefined reference to `_XSelectInput'
toon.o:toon.c:(.text+0x548): undefined reference to `_XpmCreatePixmapFromData'
toon.o:toon.c:(.text+0x625): undefined reference to `_XSetClipOrigin'
toon.o:toon.c:(.text+0x653): undefined reference to `_XSetClipMask'
toon.o:toon.c:(.text+0x6c7): undefined reference to `_XCopyArea'
toon.o:toon.c:(.text+0x6e5): undefined reference to `_XSetClipMask'
toon.o:toon.c:(.text+0x786): undefined reference to `_XClearArea'
toon.o:toon.c:(.text+0x7a7): undefined reference to `_XFlush'
toon.o:toon.c:(.text+0x8ef): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0x94b): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0x9ba): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0xa16): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0xa82): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0xb88): more undefined references to `_XRectInRegion' follow
toon.o:toon.c:(.text+0xbc4): undefined reference to `_XPending'
toon.o:toon.c:(.text+0xbdc): undefined reference to `_XNextEvent'
toon.o:toon.c:(.text+0x1021): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0x1110): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0x11c0): undefined reference to `_XRectInRegion'
toon.o:toon.c:(.text+0x127f): undefined reference to `_XSetErrorHandler'
toon.o:toon.c:(.text+0x128c): undefined reference to `_XDestroyRegion'
toon.o:toon.c:(.text+0x1291): undefined reference to `_XCreateRegion'
toon.o:toon.c:(.text+0x12d5): undefined reference to `_XQueryTree'
toon.o:toon.c:(.text+0x13c1): undefined reference to `_XGetWindowAttributes'
toon.o:toon.c:(.text+0x14ce): undefined reference to `_XUnionRectWithRegion'
toon.o:toon.c:(.text+0x1512): undefined reference to `_XShapeGetRectangles'
toon.o:toon.c:(.text+0x153e): undefined reference to `_XUnionRectWithRegion'
toon.o:toon.c:(.text+0x15fc): undefined reference to `_XUnionRectWithRegion'
toon.o:toon.c:(.text+0x1629): undefined reference to `_XFree'
toon.o:toon.c:(.text+0x1640): undefined reference to `_XFree'
toon.o:toon.c:(.text+0x164c): undefined reference to `_XSetErrorHandler'
toon.o:toon.c:(.text+0x16d4): undefined reference to `_XDestroyRegion'
toon.o:toon.c:(.text+0x16ea): undefined reference to `_XClearWindow'
toon.o:toon.c:(.text+0x16f7): undefined reference to `_XCloseDisplay'
collect2: ld returned 1 exit status
make: *** [xsimpsons] Error 1



------------------------------- here is the Makefile ------------------------------- # Makefile for XPENGUINS # Copyright (C) 1999, 2000 Robin Hogan

CC = gcc
RPM_OPT_FLAGS =
CFLAGS = -Wall $(RPM_OPT_FLAGS)

XLIBS = -lX11 -lXpm -lXext
XLIBDIR = -L/usr/X11R6/lib -L/usr/local/lib
XINCLUDEDIRS = -I/usr/X11R6/include -I/usr/local/include

OBJS = xsimpsons.o toon.o
PROGRAM = xsimpsons

all: $(PROGRAM)

$(PROGRAM): $(OBJS)
      $(CC) $(CFLAGS) $(XLIBDIR) $(XLIBS) $(OBJS) -o $(PROGRAM)

%.o: %.c
      $(CC) $(CFLAGS) $(XINCLUDEDIRS) -c $<

clean:
      -rm -f $(PROGRAM) $(OBJS)

$(OBJS): toon.h penguins/def.h penguins/*.xpm

chvar:
      mv penguins tmp
      mv variant2 penguins
      mv tmp variant2


thank you


-Robert
-----------------------------------
www.RobertBody.com
-----------------------------------



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


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