Hi,

I have a problem compiling log4cxx 0.10.0 on Windows 7 64-Bit with MinGW.

I followed the instructions found on the internet for compiling apr and
apr-util and then log4cxx. apr and apr-util compile fine without problems,
but when it comes to log4cxx I get the error:

libtool: link: g++ -g -O2 -o .libs/trivial.exe trivial.o
-L/usr/local/apr/lib -
L/c/build/logging/expat-2.1.0/lib -L/usr/local/lib
../../../src/main/cpp/.libs/l
iblog4cxx.a /usr/local/apr/lib/libaprutil-1.a /usr/local/lib/libexpat.dll.a
/usr
/local/apr/lib/libexpat.a /mingw/lib/libiconv.dll.a
/usr/local/apr/lib/libapr-1.
a -lshell32 -ladvapi32 -lkernel32 -lmsvcrt -lrpcrt4 -lws2_32 -L/mingw/lib
-L/usr
/local/lib
C:/MinGW/msys/1.0/local/apr/lib/libapr-1.a(open.o): In function
`apr_file_link':
c:\build\logging\apr/file_io/win32/open.c:602: undefined reference to
`CreateHar
dLinkW'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [trivial.exe] Error 1
make[3]: Leaving directory
`/c/build/logging/apache-log4cxx-0.10.0/src/examples/
cpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/c/build/logging/apache-log4cxx-0.10.0/src/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/build/logging/apache-log4cxx-0.10.0/src'
make: *** [all-recursive] Error 1

Has anybody else encountered this problems?

Something about the other sources:
expat 2.1.0
apr 1.4.2
apr-util 1.3.12

Any help is appreciated.

Kind regards,
Björn

Reply via email to