logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ervin Bajramovic" ...@aquasant-mt.com>
Subject Re: faild to build log4cxx => undefinde reference to `_imp__apr_xml_parse_file@20'
Date Wed, 10 Jul 2013 06:04:25 GMT
Hi all


here the  way how i try to build log4cxx on my windows xp with mingw an msys:


cd expat-2.1.0


make && make install

cd ..

cd apr-1.4.8


make && make install

cd ..

cd apr-util-1.5.2

./configure --with-apr=/local/apr --with-expat=/local

adding -DAPU_DECLARE_EXPORT on line 54 in file build/rules.mk

make && make install

cd ..

cd apache-log4cxx-0.10.0

./configure --with-apr=/local/apr --with-apr-util=/local/apr --with-logchar=wchar_t

make && make install

and then a got this error:


g++ -g -O2 -o trivial.exe trivial.o  -L/usr/local/apr/lib -L/local//lib -lshell3

2 -ladvapi32 ../../../src/main/cpp/.libs/liblog4cxx.a /usr/local/apr/lib/libapru

til-1.a /usr/local/lib/libexpat.dll.a /usr/local/apr/lib/libapr-1.a -lws2_32 -lr

pcrt4 -lmswsock -L/usr/local/lib -L/usr/local/lib

../../../src/main/cpp/.libs/liblog4cxx.a(domconfigurator.o): In function `ZN7log




: undefined reference to `_imp__apr_xml_parse_file@20'


: undefined reference to `_imp__apr_xml_parser_geterror@12'

collect2: ld gab 1 als Ende-Status zurück

make[3]: *** [trivial.exe] Error 1

make[3]: Leaving directory `/src/apache-log4cxx-0.10.0/src/examples/cpp'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/src/apache-log4cxx-0.10.0/src/examples'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/src/apache-log4cxx-0.10.0/src'

make: *** [all-recursive] Error 1


Any thoughts on what is going wrong.





View raw message