Jump to content
  • Advertisement
Sign in to follow this  

unresolved external problem

This topic is 4726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi i new to game programming when i try to compile the source code this kind error occur i know this was setting project->properties problem please show me how to change the setting below is my build log Linking... system.obj : error LNK2019: unresolved external symbol _inet_ntoa@4 referenced in function "public: int __thiscall cNetworkServer::GetIP(char *,unsigned long)" (?GetIP@cNetworkServer@@QAEHPADK@Z)

Share this post


Link to post
Share on other sites
Advertisement
You're missing the Winsock2 lib file.

Go to your project settings, go to Libraries, and add the following to the list of included libraries:

Ws2_32.lib

Cheers mate, good luck!

Share this post


Link to post
Share on other sites
Quote:
Original post by lcy
thousand thanks
beside how you know this ?


The MSDN documentation pages will tell you what libraries and headers you need for any function.

edit - example: inet_ntoa. At the bottom of the page is the list of includes and libraries needed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!