none
error with visual studio 2005

    Question

  • hi there
    i am trying to build mapscript for php and all well using visual studio 2003 but when i try to use visual studio 2005 i get the following message
    d:\build\mapserver-buildkit\php-5.2.3\main\php_regex.h(36) : warning C4005: 'PHP
    _NO_ALIASES' : macro redefinition
            command-line arguments : see previous definition of 'PHP_NO_ALIASES'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/stat.inl(44) : error C
    2466: cannot allocate an array of constant size 0
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/stat.inl(49) : error C
    2466: cannot allocate an array of constant size 0
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/utime.inl(39) : error
    C2466: cannot allocate an array of constant size 0
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/utime.inl(44) : error
    C2466: cannot allocate an array of constant size 0
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/utime.inl(49) : error
    C2466: cannot allocate an array of constant size 0
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/utime.inl(78) : error
    C2466: cannot allocate an array of constant size 0
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\wtime.inl(37) : warning C4
    133: 'function' : incompatible types - from 'const time_t *' to 'const __time32_
    t *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\wtime.inl(43) : warning C4
    133: 'function' : incompatible types - from 'const time_t *' to 'const __time32_
    t *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(32) : warning C42
    44: 'function' : conversion from 'time_t' to '__time32_t', possible loss of data

    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(32) : warning C42
    44: 'function' : conversion from 'time_t' to '__time32_t', possible loss of data

    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(38) : warning C41
    33: 'function' : incompatible types - from 'const time_t *' to 'const __time32_t
     *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(44) : warning C41
    33: 'function' : incompatible types - from 'const time_t *' to 'const __time32_t
     *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(51) : warning C41
    33: 'function' : incompatible types - from 'const time_t *' to 'const __time32_t
     *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(57) : warning C41
    33: 'function' : incompatible types - from 'const time_t *' to 'const __time32_t
     *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(64) : warning C41
    33: 'function' : incompatible types - from 'const time_t *' to 'const __time32_t
     *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(69) : warning C41
    33: 'function' : incompatible types - from 'const time_t *' to 'const __time32_t
     *'
    C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.inl(81) : warning C41
    33: 'function' : incompatible types - from 'time_t *' to '__time32_t *'
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
    l.EXE"' : return code '0x2'
    Stop.

    any ideas? i will be very gratefull if you can help me with this problem Smile

    Thursday, September 20, 2007 3:00 PM

Answers

  • All I can say from that output is that the macro 'PHP_NO_ALIASES' is defined more than once...
    Thursday, September 20, 2007 3:44 PM
  • finally I have solved this problem. It seems that php mapscript can only be compiled whith php4 and i was using php5.2 . Thanks for the helpWink
    Thursday, November 01, 2007 10:35 AM

All replies

  • All I can say from that output is that the macro 'PHP_NO_ALIASES' is defined more than once...
    Thursday, September 20, 2007 3:44 PM
  • finally I have solved this problem. It seems that php mapscript can only be compiled whith php4 and i was using php5.2 . Thanks for the helpWink
    Thursday, November 01, 2007 10:35 AM