Mail Archives: djgpp/1997/01/21/08:21:26
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 <korpela AT albert DOT ssl DOT berkeley DOT edu> wrote in article
<5c14gl$72d AT agate DOT berkeley DOT edu>...
> In article <01bc06d2$4790c4e0$190bb2c2 AT pb>, Martijn <wkersber AT caiw DOT nl>
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.
> <a
href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">
> Click here for more info.</a>
>
- Raw text -