Re: Linking against libws2_32.a a c++ program compiled by g++ in mingw.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux