This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: windowmaker 65 1 and _Xsetlocale
- To: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Subject: Re: windowmaker 65 1 and _Xsetlocale
- From: Andrew Markebo <flognat at flognat dot myip dot org>
- Date: 22 Aug 2001 22:39:10 +0200
- Cc: "'cygwin-xfree at sourceware dot cygnus dot com'" <cygwin-xfree at sourceware dot cygnus dot com>
- References: <7F2B9185F0196F44B59990759B91B1C2682F4F@ins-exch.inspirepharm.com>
/ Suhaib Siddiqi <ssiddiqi@inspirepharm.com> wrote:
| The _Xsetlocale symbol is in libX11.a(dll) therefore it should compile and
| resolve. I think it is a linking issue.
Yep linking/configuration issue it seems:
First of all, why is -lX11 included in compilation??
gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../../WINGs -I../../wrlib
-I../../src -DRESOURCE_PATH=\"/usr/local/share/WINGs\"
-I/usr/local/include -I/usr/X11R6/include -DDEBUG -g -O2 -lX11 -c connect.c
gcc: -lX11: linker input file unused because linking not done
Secondly to final linkage..
gcc -g -O2 -lX11 -o connect connect.o ../../WINGs/libWUtil.a
-L/usr/local/lib -L/usr/X11R6/lib -lPropList
../../WINGs/libWUtil.a(wapplication.o): In function `WMInitializeApplication':
/cygdrive/c/temp/cygwin/WindowMaker-0.65.1/WINGs/wapplication.c:39:
undefined reference to `_Xsetlocale'
collect2: ld returned 1 exit status
make[1]: *** [connect] Error 1
make[1]: Leaving directory
Why are -lX11 FIRST in the command line?? It gets ignored because gcc
aren't missing any of the symbols in it..
Is it the windowmaker configuration that are wrong, or some messup
when configuring for cygwin-xfree??
Ben, try to do that command-line but add -lX11 to the end of the
compilation line.