none
VS2008 编译64位的问题 RRS feed

  • 问题

  • 为什么会出这些错误呢:

    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(65) : error C2371: 'ULONG' : redefinition; different basic types
    1>        C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\windef.h(48) : see declaration of 'ULONG'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(82) : error C2371: 'DWORD_PTR' : redefinition; different basic types
    1>        C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(470) : see declaration of 'DWORD_PTR'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(84) : error C2371: 'SIZE_T' : redefinition; different basic types
    1>        C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(421) : see declaration of 'SIZE_T'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(271) : error C2118: negative subscript
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(482) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(867) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(3114) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(3515) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(5491) : warning C4244: '=' : conversion from 'ULONGLONG' to 'ULONG', possible loss of data
    1>.\Credential.cpp(1225) : warning C4267: '=' : conversion from 'size_t' to 'DWORD', possible loss of data
    1>CWrappedSmartCardCredential.cpp
    1>d:\workspace_lff\trypgina工作版\trypgina\credentialprovider\SIDFunc.h(98) : warning C4267: '=' : conversion from 'size_t' to 'DWORD', possible loss of data
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(65) : error C2371: 'ULONG' : redefinition; different basic types
    1>        C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\windef.h(48) : see declaration of 'ULONG'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(82) : error C2371: 'DWORD_PTR' : redefinition; different basic types
    1>        C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(470) : see declaration of 'DWORD_PTR'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(84) : error C2371: 'SIZE_T' : redefinition; different basic types
    1>        C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(421) : see declaration of 'SIZE_T'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(271) : error C2118: negative subscript
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(482) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(867) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(3114) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(3515) : warning C4309: '=' : truncation of constant value
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\intsafe.h(5491) : warning C4244: '=' : conversion from 'ULONGLONG' to 'ULONG', possible loss of data
    1>Generating Code...

    怎么解决呢

    2014年5月16日 7:38

答案