On Apr 20, 2008, at 7:30 AM, Павел Кудинов wrote:

Hello everybody!

Can you please help me with my questions?

First, I have a problem building the last SVN version on Windows 2003 with VS2005. After some manipulations I finally made ANT compiling all this, but there is a compilation error:

       [cc] defaultconfigurator.cpp
       [cc] propertyresourcebundle.cpp
       [cc] thread.cpp
       [cc] E:\logger\log4cxx-head\src
\main\cpp\thread.cpp(96) : error C2065: 'log4cxx_thread_t' : undeclared identifier [cc] E:\logger\log4cxx-head\src\main\cpp\thread.cpp(96) : error C2597: illegal reference to non-static member 'log4cxx::helpers::Thread::thread' [cc] E:\logger\log4cxx-head\src\main\cpp\thread.cpp(96) : error C2568: '*' : unable to resolve function overload [cc] unable to recover from previous error(s); stopping compilation
       [cc] socket.cpp
       [cc] xmllayout.cpp

Either delete thread.cpp, do a fresh checkout or use log4cxx-0.10.0. thread.cpp was renamed threadcxx.cpp to avoid an object file name collision when both APR (which has a thread.c) and log4cxx are both compiled in the same IDE project.




this is just a part of all process, as you see.

I'm using the last version of APR and APR-UTIL (1.2.12) if this information helps.
Command to run the compilation is:
ant -Dwith-apr=e:/logger/log4cxx-head/apr-1.2.12 -Dwith-apr-util=e:/ logger/log4cxx-head/apr-util-1.2.12 -Ddebug=false
The same things happening building in DEBUG mode.

The second question is about 64bit machine support. Can you please describe how can I build all that on x64 machine? Does ANT support this feature?

It should be as simple as running vcvarsall with the proper arguments instead of running vcvars32 to set up the path and environment variables before running Ant. See http://msdn2.microsoft.com/en-us/library/x4d2c09s(VS.80).aspx . Unit tests should fail if you build a 64-bit executable on a 32- bit OS, but the compile and link steps should work fine.

Reply via email to