none
visual studio 2015 compile error C3861: 'IN6_ADDR_EQUAL': identifier not found,error C2061: syntax error: identifier 'nothrow'... RRS feed

  • 问题

  • There were so many error appeared when I compiled project from vs2005 to vs2015.

    Have anyone ever encountered. Dose this coursed by configuration or other reason?

    1>d:\visual studio 2015\vc\atlmfc\include\atlwin.h(3022): error C2061: syntax error: identifier 'nothrow'
    1>d:\visual studio 2015\vc\atlmfc\include\atlhost.h(2118): error C2061: syntax error: identifier 'nothrow'
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(897): error C2065: 'in6addr_allnodesonnode': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(897): error C3861: 'IN6_ADDR_EQUAL': identifier not found
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(904): error C2065: 'in6addr_allnodesonlink': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(904): error C3861: 'IN6_ADDR_EQUAL': identifier not found
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(911): error C2065: 'in6addr_allroutersonlink': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(911): error C3861: 'IN6_ADDR_EQUAL': identifier not found
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(921): error C2065: 'in6addr_solicitednodemulticastprefix': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(922): error C2065: 'IN6ADDR_SOLICITEDNODEMULTICASTPREFIX_LENGTH': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(940): error C2065: 'IN6ADDR_6TO4PREFIX_LENGTH': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(941): error C2065: 'in6addr_6to4prefix': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(941): error C2228: left of '.u' must have class/struct/union
    1>  c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(941): note: type is 'unknown-type'
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(941): error C2228: left of '.Word' must have class/struct/union
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(948): error C2065: 'IN6ADDR_TEREDOPREFIX_LENGTH': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(950): error C2065: 'in6addr_teredoprefix': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(950): error C2228: left of '.u' must have class/struct/union
    1>  c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(950): note: type is 'unknown-type'
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(950): error C2228: left of '.Word' must have class/struct/union
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(951): error C2065: 'in6addr_teredoprefix': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(951): error C2228: left of '.u' must have class/struct/union
    1>  c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(951): note: type is 'unknown-type'
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(951): error C2228: left of '.Word' must have class/struct/union
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(952): error C2065: 'in6addr_teredoprefix_old': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(952): error C2228: left of '.u' must have class/struct/union
    1>  c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(952): note: type is 'unknown-type'
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(952): error C2228: left of '.Word' must have class/struct/union
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(953): error C2065: 'in6addr_teredoprefix_old': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(953): error C2228: left of '.u' must have class/struct/union
    1>  c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(953): note: type is 'unknown-type'
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(953): error C2228: left of '.Word' must have class/struct/union
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(961): error C3861: 'IN6_IS_ADDR_V4MAPPED': identifier not found
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(1020): error C2065: 'in6addr_v4mappedprefix': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(1031): error C2065: 'in6addr_any': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(1042): error C2065: 'in6addr_solicitednodemulticastprefix': undeclared identifier
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(1052): error C3861: 'IN4_IS_ADDR_6TO4ELIGIBLE': identifier not found
    1>c:\program files (x86)\windows kits\8.1\include\shared\mstcpip.h(1106): error C2275: 'IN6_ADDR': illegal use of this type as an expression
    1>  c:\program files (x86)\windows kits\8.1\include\shared\in6addr.h(27): note: see declaratio

     

    2015年9月17日 11:18

全部回复

  • “in6addr_allnodesonnode”,'IN6_ADDR_EQUAL' should defined in ws2ipdef.h header file.

    Did you include the ws2ipdef.h file? Or open the ws2ipdef.h file(right click and select open document...) and check the code of how 'IN6_ADDR_EQUAL' is defined and if your project meet the condition to define this symbol.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年9月18日 5:50
  • Do you have below code in your VS 2015 project?

    #ifdef _DEBUG
        #ifndef DBG_NEW
           #define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
           #define new DBG_NEW
        #endif
     #endif  // _DEBUG
    Please comment out this section or define /D "_ATL_DISABLE_NOTHROW_NEW" in your project property. VS 2005 to VS 2015 across several versions VS, there are lots of breaking changes.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年9月18日 6:03
  • I have add "_ATL_DISABLE_NOTHROW_NEW" in property->Configuration Property->C/C++ ->Preprocessor ->Preprocessor Definitions,this have work for  error C2061: syntax error: identifier 'nothrow'.

    Thank you for give this method.

    2015年9月23日 10:02