delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/17/06:20:20

From: papilla AT cs DOT tamu DOT edu (Benoit Papillault)
Subject: gcc does not handle macro properly
17 Jun 1998 06:20:20 -0700 :
Message-ID: <Pine.GSO.3.96.980617024003.3012C-100000.cygnus.gnu-win32@swallow>
References: <199806160527 DOT WAA119358 AT axon DOT engr DOT sgi DOT com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi,

I am trying to compile some code with Winsock2. I am currently trying to
modify the header files myself because I get many errors messages. I
discover that gcc does not handle propertly the following macro:

#define	FD_CLR(fd,set) do { \
	u_int __i; \
	for (__i = 0; ...

The compiler says: parse error before for...

In fact, I edited the file with vi and remove all the ^M after the \ and
it works. (Now I have different error messages) I am pretty sure that it
comes from some silly TEXT and BINARY mode. And perhaps the solution would
be to use the 'mount' programs....

Benoit Papillault


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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