none
winnt.h error RRS feed

  • Question

  • I have a code file that includes two header files -

    #include <winsock2.h>                                               
    #include <ws2tcpip.h>                                               

    One of these two files is causing winnt.h to be included which is throwing up a compilation error:

    Error ------ \Windows Kits\8.0\Include\um\winnt.h(148): error RC2188

    winsock2.h includes windows.h.

    Anyone has an idea what might be causing this error.

    Thanks in Advance

    • Moved by Yi Feng Li Thursday, May 24, 2012 5:38 AM (From:MSBuild)
    Wednesday, May 23, 2012 2:46 PM

All replies

  • I see these two warning before the error is thrown -

    26>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(57): warning RC4011: identifier truncated to '_CRT_SECURE_CPP_OVERLOAD_STANDA'
    26>  
    26>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(79): warning RC4011: identifier truncated to '_CRT_SECURE_CPP_OVERLOAD_SECURE'
    26> 

    Wednesday, May 23, 2012 2:49 PM
  • Hi Saurabh,

    Thank you for your post.

    Based on this case relate to Windows Desktop Winsock Kernel, i am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thank you for your understanding and support.

    Best Regards,

    Ego

    Thursday, May 24, 2012 5:33 AM