Bug winsock?
Pietro
kpietro@inwind.it
Sun Jan 28 07:08:00 GMT 2001
Hello,
I have gcc-2.95.2 for windows95 (mingw32).
The problem is :
undefined reference to ' WSAStartupç8 '.
There is winsock.h.
Why ?
The program is:
#include <winsock.h>
#include <stdio.h>
void start_winsock();
main()
{
ÃÂ start_winsock();
}
void start_winsock()
{ WSADATA wsaData;
ÃÂ WORD wVersionRequested;
ÃÂ wVersionRequested = MAKEWORD (1, 1);
ÃÂ if ( WSAStartup( wVersionRequested, &wsaData ) < 0)
fatal_error("Non va");
ÃÂ }
The command is : gcc sock.c (name my program)
Whit gcc -H sock.c appaire ..\..\include\winsock.h
Is ok.
Help me
Thanks
Ciao by Italy
More information about the Gcc
mailing list