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

Anatoli Sakhnik incognito@univ.kiev.ua
Wed Apr 20 10:53:00 GMT 2005


Hi, everybody!
I'm trying to link against libws2_32.a a C++ program, which uses winsock2.h.
That's the catch! Corresponding C conterpart, which does the same, is built
without problems. It turned out that there are defined symbols like _htons@4
in the library, but my objects require htons@4 (without underscore).
How to tell the g++ to put the underscore sign before symbols used in the
winsock2?
Thanks a lot! -- Anatoli Sakhnik



More information about the Gcc-help mailing list