From: "Martijn" Newsgroups: comp.os.msdos.djgpp Subject: Re: help me with struct! Date: 21 Jan 1997 11:38:56 GMT Organization: CAI Westland/Kabelfoon Lines: 34 Message-ID: <01bc078f$cfca7140$380bb2c2@pb> References: <01bc06d2$4790c4e0$190bb2c2 AT pb> <5c14gl$72d AT agate DOT berkeley DOT edu> NNTP-Posting-Host: 194.178.11.56 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Thanks for all your reply's. It's solved now. But now I have another problem. When I link I get undefined procedure..... The calls which are not defined are calls to the windows API in the winsock.dll file. How do I solve this? Thanks, martijn Eric J. Korpela wrote in article <5c14gl$72d AT agate DOT berkeley DOT edu>... > In article <01bc06d2$4790c4e0$190bb2c2 AT pb>, Martijn wrote: > >I have the following in a winsock.h file and get syntax error before ";" > >and a lot of other errors: > > > > WORD wlow; <-- syntax error before ; > > WORD whigh; <-- syntax error before ; > > char FAR *lpVendorInfo; <--parse error before * > >typedef WSADATA FAR *LPWSADATA <-- parse error before * And > > Somewhere in your code before this declaration add the following lines > > typedef unsigned short WORD __attribute__((packed)); > #define FAR > > Eric > -- > Eric Korpela | An object at rest can never be > korpela AT ssl DOT berkeley DOT edu | stopped. > > Click here for more info. >