delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/21/08:21:26

From: "Martijn" <wkersber AT caiw DOT nl>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019