This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
libX11 symbols not resolved
- From: Marc <mojbordel at yahoo dot co dot uk>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 7 Dec 2006 15:01:23 +0000 (GMT)
- Subject: libX11 symbols not resolved
- Reply-to: cygwin-xfree at cygwin dot com
Hello,
I'm trying to compile bbkeys
(http://kent.dl.sourceforge.net/sourceforge/bbkeys/bbkeys-0.9.0.tar.gz)
on the latest Cygwin. The compilation is OK but at the end I get
this from the linker:
...
...
g++ -DNDEBUG -O2 -I/usr/X11R6/include -I/usr/local/include/bt
-L/usr/X11R6/lib -lSM -lICE -o bbkeys.exe actions.o Config.o
FileTokenizer.o KeyClient.o KeyGrabber.o keytree.o main.o
Netclient.o
ScreenHandler.o window.o WindowlistMenu.o -L/usr/X11R6/lib -lX11
-lXext -L/usr/local/lib -lbt -liconv
/usr/local/lib/libbt.a(Application.o): In function
`_ZNK2bt11Application10grabButtonEjjmbjiimmb':
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XGrabButton'
/usr/local/lib/libbt.a(Application.o): In function
`_ZNK2bt11Application12ungrabButtonEjjm':
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XUngrabButton'
/usr/local/lib/libbt.a(Application.o): In function
`_ZN2bt11Application13process_eventEP7_XEvent':
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XCheckTypedWindowEvent'
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XCheckTypedWindowEvent'
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XCheckTypedWindowEvent'
/usr/local/lib/libbt.a(Application.o): In function
`_ZN2bt11Application9closeMenuEPNS_4MenuE':
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XUngrabPointer'
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XSync'
...
...
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XQueryColors'
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XAllocColor'
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XAllocColor'
/d/temp/blackbox/blackbox-0.70.1/lib/Display.hh:49: undefined
reference to `_XAllocColor'
collect2: ld returned 1 exit status
make[2]: *** [bbkeys.exe] Error 1
make[2]: Leaving directory
`/cygdrive/d/temp/bbkeys/bbkeys-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/temp/bbkeys/bbkeys-0.9.0'
make: *** [all] Error 2
However:
$ strings /usr/X11R6/lib/libX11.dll.a | grep '_XGrabButton'
_XGrabButton
__imp__XGrabButton
_XGrabButton
__imp__XGrabButton
I have created all possible kinds of symbolic links to
/usr/X11R6/lib/libX11.dll.a for the linker to pick up the library,
but to no avail. Also interesting is that blackbox wm has compiled
&
linked without problems. What should I do?
thanks
Marek
p.s.: please respond also to mojbordel@yahoo.co.uk as I'm not
subscribed to the mailing list. thanks.
Send instant messages to your online friends http://uk.messenger.yahoo.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/