Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
ming32 winsock2 link problem
I'm trying to compile some code using Dev-c++ which internally uses the mingcc compiler. I'm trying to use some winsock 2 functions and running into problems in the linking stage of building my project.
Here is the error I get:
[Linker error] undefined reference to `gai_strerrorA@4'
I have -lws2_32 set as a parameter. I also have libws2_32.a in the lib directory. There are many other functions used without any message about them so it seems like the library is linked properly but that the .a file is old and doesn't have a definition for gai_strerrorA.
Do you have any tips or a place to find a newer version of this .a file?
0 · ·