Cannot open include file: 'arpa/inet.h':

c, visual-c++-2012

Solution

Windows uses different headers and implementation for Berkeley sockets instead of the Unix `<arpa/inet.h>` headers; you need to use a different header and group of functions.

#include <Winsock2.h>

More information about this is in the Winsock2 documentation.

See also: Where do I get arpa/inet.h.

Problem

``` #include <arpa/inet.h> ``` I am getting this type of error Cannot open include file: 'arpa/inet.h': How do I include this header file? I am actually doing this code in VC++2012.

Original source

Related problems