runtest.c : error C2146: syntax error : missing ')' before identifier ' SYSCONFDIR'
Hello, I am compiling version 2.12.0 using VS2013, this is the command line that I use:
cd /D C:\httpd\srclib\libxml2\win32
nmake /f Makefile.msvc distclean 2>nul
cscript configure.js compiler=msvc prefix=\phpStudy\Apache include=\phpStudy\Apache\include lib=\phpStudy\Apache\lib iconv=no xml_debug=no python=no zlib=yes
Then I ran the command: nmake /f Makefile.msvc
I get a compiler error:
cl.exe /nologo /D "_WINDOWS" /D "_MBCS" /D "NOLIBTOOL" /W3 /wd4244 /wd42
67 /MD /I.. /I..\include /I\phpStudy\Apache\include /D "_REENTRANT" /D_CRT_SECUR
E_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /D "NDEBUG" /O2 /Foint.utils.msvc\ /
c ..\runtest.c
runtest.c
..\runtest.c(3305) : error C2146: syntax error : missing ')' before identifier '
SYSCONFDIR'
..\runtest.c(3324) : error C2146: syntax error : missing ')' before identifier '
SYSCONFDIR'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\amd64\cl.exe"' : return code '0x2'
Stop.
But when trying with version 2.10.4, compilation goes normally, no errors occur!
UPDATE: The preliminary solution was given at #620 (closed).
Edited by Tần Quảng