Undefined reference to getaddrinfo

前端 未结 3 511
孤独总比滥情好
孤独总比滥情好 2020-12-06 12:07

I have been getting this error for quite some time now and Google has not been of much help either.

I am a newbie to Winsock programming and trying to learn from onl

3条回答
  •  失恋的感觉
    2020-12-06 12:52

    http://msdn.microsoft.com/en-us/library/ms738520(v=vs.85).aspx

    Take a look at the stuff under "remarks". It is possible that you are trying to use an ANSI-C version of the function when you aren't compiling as ANSI-C.

提交回复
热议问题