This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug winsock?


On Sun, 28 Jan 2001, Pietro wrote:

> Hello,
> I have gcc-2.95.2 for windows95 (mingw32).
> The problem is :

This is a platfor-specific issue, and you should use the Mingw
mailing list for this type of queries. Please visist Mingw site
at http://www.mingw.org/ for details on how to subscribe.

The answer is that you need to link with the winsock library
as well. Add -lwsock32 at the end of your 

> The command is : gcc sock.c (name my program)

Try: gcc -o sock sock.c -lwsock32

Regards,
Mumit



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]