Skip to content

Compile error on MinGW 32 (inet_pton) #71

@hexedit

Description

@hexedit

Getting this error when compiling with mingw32.

../../src/http_utils.cpp: In function 'void httpserver::http::get_ip_str(const sockaddr_, std::string&, socklen_t)':
../../src/http_utils.cpp:258:17: error: 'inet_ntop' was not declared in this scope
);
^
../../src/http_utils.cpp: In function 'const sockaddr httpserver::http::str_to_ip(const string&)':
../../src/http_utils.cpp:296:52: error: 'inet_pton' was not declared in this scope
inet_pton(AF_INET6, src.c_str(), (void_) &s);
^
../../src/http_utils.cpp:300:51: error: 'inet_pton' was not declared in this scope
inet_pton(AF_INET, src.c_str(), (void_) &s);
^
make[2]: *_* [libhttpserver_la-http_utils.lo] Error 1
make[2]: Leaving directory /home/Timofey/libhttpserver-master/build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/Timofey/libhttpserver-master/build'
make: *** [all] Error 2

uname -a
MINGW32_NT-6.2 HEXEDIT-N56DY 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

Maybe some missing dependency?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions