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.

Reply via email to