It seems it can' find reference to apr. Try to build apr, or use the flag no-apr. On 8 Jul 2013 11:43, "Ervin Bajramovic" <e...@aquasant-mt.com> wrote:
> Hi all**** > > ** ** > > i am trying to build log4cxx with mingw on windows xp, but i got this > error:**** > > ** ** > > g++ -g -O2 -o trivial.exe trivial.o -L/usr/local/apr/lib -L/usr/local/lib > -lshe**** > > ll32 -ladvapi32 ../../../src/main/cpp/.libs/liblog4cxx.a > /usr/local/apr/lib/liba**** > > prutil-1.a /usr/local/lib/libexpat.dll.a /usr/local/apr/lib/libapr-1.a > -lws2_32**** > > -lrpcrt4 -lmswsock -L/usr/local/lib -L/usr/local/lib**** > > ../../../src/main/cpp/.libs/liblog4cxx.a(domconfigurator.o): In function > `ZN7log**** > > > 4cxx3xml15DOMConfigurator11doConfigureERKNS_4FileERNS_7helpers10ObjectPtrTINS_3s > **** > > pi16LoggerRepositoryEEE':**** > > > C:\MinGW\msys\1.0\src\apache-log4cxx-0.10.0\src\main\cpp/domconfigurator.cpp:724 > **** > > : undefined reference to `_imp__apr_xml_parse_file@20'**** > > > C:\MinGW\msys\1.0\src\apache-log4cxx-0.10.0\src\main\cpp/domconfigurator.cpp:733 > **** > > : 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.**** > > ** ** > > Regards **** > > Ervin**** >