Hello,
I'm using MinGW-3.1.0-1, under Windows XP, and I cannot
build libxbase-2.0.0
./configure
(...)
without any error
make
(...)
warnings about the deprecated headers like foo.h
(...)
g++ -DHAVE_CONFIG_H -I. -I. -I../xbase
-I/home/x/xbase-2.0.0 -O2 -Wall -c sample1.cpp
In file included from
c:/mingw/include/c++/3.2.3/backward/iostream.h:31,
from
C:/MinGW/home/x/xbase-2.0.0/xbase/xbstring.h:59,
from
C:/MinGW/home/x/xbase-2.0.0/xbase/xdate.h:68,
from
C:/MinGW/home/x/xbase-2.0.0/xbase/xbase.h:108,
from sample1.cpp:48:
c:/mingw/include/c++/3.2.3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or
<sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
/bin/sh ../libtool --silent --mode=link g++ -O2 -Wall
-s -o sample1 sample1.o
-L/home/x/xbase-2.0.0/xbase/.libs -lxbase
c:\mingw\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lxbase
make[1]: *** [sample1] Error 1
make[1]: Leaving directory `/home/x/xbase-2.0.0/examples'
make: *** [all-recursive] Error 1
I tried to change LD_LIBRARY_PATH, without success :-(
gcc -v
Reading specs from
c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc
--with-gnu-ld --with-gnu-as --host=mingw32
--target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c++,f77,objc
--disable-win32-registry --disable-shared
--enable-sjlj-exceptions
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)
make -v
GNU Make version 3.79.1, by Richard Stallman and Roland
McGrath.
Built for i686-pc-msys
Any ideas ? Running under windows Xp home.
Thank you
Logged In: YES
user_id=1190938
I did not try 2.0.0, but did successfully build 2.1.1. Some
of the changes should be in the automake and autoconf input
files, but I haven't tried to use those utilities yet, so
effective changes are in (I think) the output results of
those utilities. (I've actually built 2.1.1 under both
linux and windows/mingw/msys, with these changes.)
Here are my diary notes regarding that effort:
started with fresh extract of xbase-2.1.1.tar.gz
(working directory .../xbase-2.1.1)
changed configure.in,
"topdir = `pwd`" became "topdir=`pwd`"
xbase/xbstring.cpp
-commented out check of "#if HAVE_CTYPE_H" and correspond.
"#endif"
-so ctype.h would be included
in libtest/Makefile.am, changed
"INCLUDES= -I../xbase" to "INCLUDES= -I$(topdir)/xbase"
and
"LDADD = -L../xbase -lxbase" to "LDADD =
-I$(topdir)/xbase -lxbase"
made corresponding change to Makefile.in, since automake or
-autoconfig seem to be choking on Makefile.am or something,
-in my environment...
Went back and added "-I$(topdir) to "INCLUDES=..." in
-libtest\Makefile.in
trying to figure out how to get XBASE_DEBUG compiled in -
appears
-autoconf/configure.in is defining XB_DEBUG, instead of
XBASE_DEBUG!!!!
-will try changing XB_DEBUG to XBASE_DEBUG and see what
happens...
-seems to work (dumphdr) after changing XB_DEBUG to XBASE_DEBUG