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 Raymond Lau <rl...@valicore.com> on 2005/05/12 01:49:23 UTC
build problem on cygwin running gcc version 3.3.3
When I tried to build log4cxx by just issuing a "make" command after
running configure,
I got the following compilation error:
../include/log4cxx/helpers/tchar.h:51: error: 'swprintf' undeclared
(first use this function)
Does that has to do with g++ and the std library?
Re: build problem on cygwin running gcc version 3.3.3
Posted by Curt Arnold <ca...@apache.org>.
Please work with the CVS HEAD, log4cxx-0.9.7 is extremely out of date
and has serious bugs. I can't promise you that the CVS HEAD will
build out of the box on Cygwin, but at least we can do something
about it.
FYI: The automake build is not the primary build mechanism for
log4cxx. One of the other developers is working on getting it up to
date, but most builds are done with Ant + cpptasks which supports non
gcc like compilers and can generate IDE project files. However, the
automake build is probably close enough to Cygwin and the oddity of
the Cygwin environment might trip up Ant+cpptasks,
You may need to manually tweak include/log4cxx/log4cxx.h to set
LOG4CXX_HAS_WCHAR_T to 0 as I believe that Cygwin's gcc does not
support the wchar_t (or may not have wcstombs or mbstowcs).
On May 11, 2005, at 6:49 PM, Raymond Lau wrote:
> When I tried to build log4cxx by just issuing a “make” command
> after running configure,
>
>
>
> I got the following compilation error:
>
>
>
> ../include/log4cxx/helpers/tchar.h:51: error: ‘swprintf’ undeclared
> (first use this function)
>
>
>
> Does that has to do with g++ and the std library?
>
>
>
>