Eljay Love-Jensen wrote:
Hi Anatoli,
Try -fleading-underscore.
Also, keep in mind that winsock2.h is not a GCC file. It may or may not be C++ savvy. If it's not C++ savvy, the burden is on your shoulders to wrap-or-port it to be C++ palatable.
HTH,
--Eljay
Nothing different happened. I've just found out that actually my
objects have _htons@4 symbol with the underscrore, but the linker
prints out that it can't resolve htons@4 in any case.
The fact is many projects around the world use the winsock2 libra-
ry from mingw. So I really don't understand what's the matter...
-- Anatoli