Your example works fine with mingw-w64 6.0.0. You can see function definition here: https://gitlab.com/mati865/mingw-w64-mirror/blob/master/mingw-w64-headers/include/ws2tcpip.h#L444
śr., 21 lis 2018 o 22:49 Marc-André Lureau <[email protected]> napisał(a): > Hi > On Thu, Nov 22, 2018 at 1:33 AM Earnie via Mingw-w64-public > <[email protected]> wrote: > > > > On 11/21/2018 2:12 PM, Marc-André Lureau wrote: > > > Hi, > > > > > > Apparently, this is a recurrent question on the web, but I can't find > > > an answer what is the correct solution. From mingw git repo: > > > > > > commit 5fe3a72687f0629b68333fa438f4389db790651b > > > Author: Rafaël Carré <[email protected]> > > > Date: Mon Mar 18 14:21:42 2013 +0000 > > > > > > Add InetPtonA, inet_pton, and InetPtonW prototypes. > > > > > > But inet_pton() is not declared in that commit (or later). Should it > > > be declared in mingw headers or some other way? > > > > > > > You need to provide a short simple test case to show the issue. Without > > an example we can only guess what you might be doing wrong with this > report. > > > > On f29, with mingw64-headers-5.0.4-2.fc29.noarch > > $ x86_64-w64-mingw32-gcc test.c -lws2_32 > > #include <ws2tcpip.h> > > int main(int argc, char *argv[]) > { > void *foo = inet_ntop; > return 0; > } > > > test.c:5:17: error: 'inet_ntop' undeclared (first use in this > function); did you mean 'inet_ntoa'? > > (yet the program can link succesfully) > > > -- > > Earnie > > > > > > _______________________________________________ > > Mingw-w64-public mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > > > > -- > Marc-André Lureau > > > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
