#47787 [Opn->Fbk]: VC++ 2005 build error
ID: 47787
Updated by: pajoye@php.net
Reported By: dpage at pgadmin dot org
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Windows XP
PHP Version: 5.2.9
New Comment:
Please try a 5.2's cvs version.
Also, 5.2 only supports VC6. Use 5.3 if you want to use a decent
compiler :)
Previous Comments:
------------------------------------------------------------------------
[2009-03-26 11:32:43] dpage at pgadmin dot org
Description:
------------
Building 5.2.9 with VC++ 2005 results in the error:
main\spprintf.c(184) : error C2491: 'strnlen' : definition of dllimport
function not allowed
This appears to be due to the change here:
http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.25.2.2.2.14&r2=1.25.2.2.2.15
The issue is resolved by adding:
#define HAVE_STRNLEN 1
to win32/build/config.w32.h.in
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47787&edit=1
Thread (9 messages)