Hi,
I am using log4cxx-0.10.0 with Visual Studio 2005.
I am able to successfully build apr-1.lib and aprutil-1.lib.
But, when I try to build log4cxx I am getting following linker errors:
Error 1 error LNK2019: unresolved external symbol _XML_SetCharacterDataHandler referenced in function [EMAIL PROTECTED] aprutil-1.lib Error 2 error LNK2019: unresolved external symbol _XML_SetElementHandler referenced in function [EMAIL PROTECTED] aprutil-1.lib Error 3 error LNK2019: unresolved external symbol _XML_SetUserData referenced in function [EMAIL PROTECTED] aprutil-1.lib Error 4 error LNK2019: unresolved external symbol _XML_ParserCreate referenced in function [EMAIL PROTECTED] aprutil-1.lib Error 5 error LNK2019: unresolved external symbol _XML_ParserFree referenced in function
_cleanup_parser aprutil-1.lib Error 6 error LNK2019: unresolved external symbol _XML_GetErrorCode referenced in function _do_parse aprutil-1.lib Error 7 error LNK2019: unresolved external symbol _XML_Parse referenced in function _do_parse aprutil-1.lib Error 8 error LNK2019: unresolved external symbol _XML_ErrorString referenced in function [EMAIL PROTECTED] aprutil-1.lib Error 9 fatal error LNK1120: 8 unresolved externals .\Debug/log4cxx.dll
Please, help on fixing this issue.
Regards,
Madhu Gowda
--- On Wed, 4/30/08, Curt Arnold <[EMAIL PROTECTED]> wrote:
From: Curt Arnold <[EMAIL PROTECTED]> Subject: Re: problems in building log4cxx-0.10.0 To: "Log4CXX User" <log4cxx-user@logging.apache.org> Date: Wednesday, April 30, 2008, 3:35 PM
On Apr 30, 2008, at 7:41 AM, Madhu Gowda wrote:
> Hi,
>
> I am new to log4cxx.
> I downloaded the apache-log4cxx-0.10.0.zip, apr-util-1.2.10-win32-
> src.zip and apr-1.2.11-win32-src.zip.
> I am using Visual Studio 6.0
>
> I am following the given instructions to build:
> unzip apr-1.2.11-win32-src.zip
> rename apr-1.2.11 apr
> unzip apr-util-1.2.10-win32-src.zip
> rename apr-util-1.2.10 apr-util
> cd apache-log4cxx-0.10.0
> configure
> configure-aprutil
> (from http://logging.apache.org/log4cxx/building/vstudio.html)
>
> I get the apr-1.lib, libapr-1.dll and aprutil-1.lib built
> successfully but, when i try to build libaprutil-1.dll I am getting
> linker errors as:
> apr_dbd.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_brigade.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_buckets_alloc.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_buckets_mmap.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_buckets_pool.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_xml.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_dbd.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_queue.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_reslist.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> sdbm.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_brigade.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_buckets_alloc.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_buckets_mmap.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> apr_buckets_pool.obj : error LNK2001: unresolved external symbol
> [EMAIL PROTECTED]
> .
> .
> .
> etc
>
> Please, give some suggestions on how to fix this.
>
> Regards,
> Madhu Gowda
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.
> Try it now.
The most common way to use log4cxx on Windows is to build log4cxx.dll
against APR and APR-Util static libraries. You appear to have been
able to successfully build APR and APR-Util as static libraries and
could proceed to build log4cxx against them.
However, I'll look into why you might be failing to build APR-Util as
a dynamic library, though any problem would likely be an APR problem
and not a log4cxx problem. |