I am trying to compile a c++ program and am getting the linker error
'Undefined reference to __imp_htonl.
I know this has been asked allot but I have added ws2_32 to my linker in Codeblocks and updated the search directory to find this file.
I'm using Windows 7 Pro 64-bit.
I'm not sure what else I'm doing wrong? I believe ws2_32 is supposed to stop this error?
Last edited on