Hello,

I am trying to build log4cxx for Windows using Ant, but I seem to have
compile issues for open.c source file. The errors I get are:

      [cc] open.c
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(608) :
error C2065: 'wto_path' : undecl
ared identifier
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(608) :
warning C4047: 'function' : 'LPC
STR' differs in levels of indirection from 'int'
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(608) :
warning C4024: 'CreateHardLinkA'
 : different types for formal and actual parameter 1
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(608) :
error C2065: 'wfrom_path' : unde
clared identifier
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(608) :
warning C4047: 'function' : 'LPC
STR' differs in levels of indirection from 'int'
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(608) :
warning C4024: 'CreateHardLinkA'
 : different types for formal and actual parameter 2
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(608) :
error C2198: 'CreateHardLinkA' :
 too few arguments for call
       [cc] M:\Projects\ApacheTools\apr\file_io\win32\open.c(610) :
error C2143: syntax error : miss
ing ';' before '}'

I am using apr-1.4.2, apr-utils-1.3.10 and log4cxx-0.10.0, and I have
run both configure.bat and configure-aprutil.bat.

What Is odd is that I can build directly in Visual Studio 2008 by
opening log4cxx.dsw and allowing VS2008 to convert all projects.

The reason I am building via Ant is that I am going to try and enable
smtp functionality via the -Dwith-SMTP option.

Am I doing something incorrect?

Regards,

Tim

Reply via email to