From: "Martijn" Newsgroups: comp.os.msdos.djgpp Subject: help me with struct! Date: 20 Jan 1997 13:02:17 GMT Organization: CAI Westland/Kabelfoon Lines: 19 Message-ID: <01bc06d2$4790c4e0$190bb2c2@pb> NNTP-Posting-Host: 194.178.11.25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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. Thanks in advance for your help, martijn