Compiling error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am attempting to build our DLL on PHP 5.3.4.  The problem I am
encountering has to do with the time32. I am receiving the following
errors:
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/stat.inl(44) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/stat.inl(49) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(39) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(44) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(49) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio
9.0\VC\include\sys/utime.inl(78) : error C2466: cannot allocate an
array of constant size 0
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(32) :
warning C4244: 'argument' : conversion from 'time_t' to '__time32_t',
possible loss of data
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(32) :
warning C4244: 'argument' : conversion from 'time_t' to '__time32_t',
possible loss of data
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(38) :
error C2664: '_ctime32' : cannot convert parameter 1 from 'const
time_t *' to 'const __time32_t *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(44) :
error C2664: 'errno_t _ctime32_s(char *,size_t,const __time32_t *)' :
cannot convert parameter 3 from 'const time_t *' to 'const __time32_t
*'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(51) :
error C2664: '_gmtime32' : cannot convert parameter 1 from 'const
time_t *' to 'const __time32_t *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(57) :
error C2664: '_gmtime32_s' : cannot convert parameter 2 from 'const
time_t *' to 'const __time32_t *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(64) :
error C2664: '_localtime32' : cannot convert parameter 1 from 'const
time_t *' to 'const __time32_t *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(69) :
error C2664: '_localtime32_s' : cannot convert parameter 2 from 'const
time_t *' to 'const __time32_t *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(81) :
error C2664: '_time32' : cannot convert parameter 1 from 'time_t *' to
'__time32_t *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast

When I comment the line defining macro _USE_32BIT_TIME_T in
config.w32.h of PHP, the source will compile, but I get an exception
when attempting to start our library.  This code, as is, will compile
against the 5.2.x branch of PHP.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux