You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Arti Katre <AK...@cygnuscom.com> on 2005/06/24 08:02:32 UTC
problem installing log4cxx in cygwin
I am trying to install log4cxx through cygwin. After typing "make", I am
getting an error "swprintf undeclared". I have checked other similar
mails, but I didn't find the suitable answer. Following is the output of
the make.
$ make
Making all in docs
make[1]: Entering directory `/cygdrive/c/temp/log4cxx-0.9.7/docs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/temp/log4cxx-0.9.7/docs'
Making all in src
make[1]: Entering directory `/cygdrive/c/temp/log4cxx-0.9.7/src'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I../include/log4cxx -I
../include -D_REENTRANT -g -O2 -MT appenderattachableimpl.lo -MD -MP
-MF ".deps/appenderattachable
impl.Tpo" -c -o appenderattachableimpl.lo appenderattachableimpl.cpp; \
then mv -f ".deps/appenderattachableimpl.Tpo"
".deps/appenderattachableimpl.Plo"; else rm -f ".deps/
appenderattachableimpl.Tpo"; exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include
-D_REENTRANT -g -O2 -MT appenderattac
hableimpl.lo -MD -MP -MF .deps/appenderattachableimpl.Tpo -c
appenderattachableimpl.cpp -DPIC -o .l
ibs/appenderattachableimpl.o
In file included from appenderattachableimpl.cpp:17:
../include/log4cxx/helpers/tchar.h: In static member function `static
void Convert::int64ToString(wc
har_t*, size_t, const int64_t&)':
../include/log4cxx/helpers/tchar.h:50: error: `swprintf' undeclared
(first use this function)
../include/log4cxx/helpers/tchar.h:50: error: (Each undeclared
identifier is reported only once for
each function it appears in.)
make[1]: *** [appenderattachableimpl.lo] Error 1
make[1]: Leaving directory `/cygdrive/c/temp/log4cxx-0.9.7/src'
make: *** [all-recursive] Error 1