Mail Archives: djgpp/1997/01/20/16:58:03
Errors-To: postmaster AT ns1
From: "Martijn" <wkersber AT caiw DOT nl>
Newsgroups: comp.os.msdos.djgpp
Date: 20 Jan 1997 13:02:17 GMT
Organization: CAI Westland/Kabelfoon
Lines: 19
Nntp-Posting-Host: 194.178.11.25
X-Newsreader: Microsoft Internet News 4.70.1160
Dj-Gateway: from newsgroup comp.os.msdos.djgpp
Content-Type: text
Content-Length: 618
I have the following in a winsock.h file and get syntax error before ";"
and a lot of other errors:
typedef struct WSAData {
WORD wlow; <-- syntax error before ;
WORD whigh; <-- syntax error before ;
char szDescription [WSADESCRIPTION_LEN+1];
char szSystemStatus [WSASYS_STATUS_LEN+1];
unsigned short imaxSockets;
unsigned short iMaxUdpdg;
char FAR *lpVendorInfo; <--parse error before *
} WSADATA;
typedef WSADATA FAR *LPWSADATA <-- parse error before * And
Warning: C++ forbids declaration
with no type or storage class.
It looks like the data type 'WORD' is not defined in the included header files.
--
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com
A proverb is no proverb to you 'till life has illustrated it. -- John Keats
- Raw text -