Wierd error linking to wxBase_net Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
onionman
Knows some wx things
Knows some wx things
Posts: 34
Joined: Wed May 20, 2009 7:03 pm

Wierd error linking to wxBase_net

Post by onionman »

Hi!

I'm trying to compile a project that makes use of wxBase_net.lib, and am making sure to link to wxbase31ud_net.lib
but am still getting errors along the lines of

Code: Select all

wxbase31ud_net.lib(sckaddr.obj) : error LNK2019: unresolved external symbol _htonl@4 referenced in function "public: bool __thiscall wxSockAddressImpl::SetHostAddress(unsigned int)" (?SetHostAddress@wxSockAddressImpl@@QAE_NI@Z)
Does this make sense to anyone? I just can NOT figure it out!

-Brandon
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Wierd error linking to wxBase_net

Post by doublemax »

If you use socket functions, you also need to add some more Windows libraries to your project.

E.g. Ws2_32.lib
Last edited by doublemax on Mon Oct 10, 2016 3:48 pm, edited 1 time in total.
Reason: typo
Use the source, Luke!
onionman
Knows some wx things
Knows some wx things
Posts: 34
Joined: Wed May 20, 2009 7:03 pm

Re: Wierd error linking to wxBase_net

Post by onionman »

Thank you so much!!
Post Reply