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]

 



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


[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