error C2065: 'in6addr_allnodesonnode' : undeclared identifier

If you are converting VC++/C++ project form Visual Studio 2003 or Visual Studio 2005 to Visual Studio 2008 or later you may hit the error "error C2065: 'in6addr_allnodesonnode' : undeclared identifier" or many such undeclared identifier errors.

One way to resolve the error is to modify the include sequence of the below mentioned header files:


#include <Ws2tcpip.h>
#include <mstcpip.h>

to 

#include <mstcpip.h>
#include <Ws2tcpip.h>
 
Else you will have to declare the WinVer > 0x500

No comments:

Post a Comment

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...