From: tomas DOT fasth AT twinspot DOT net (Tomas Fasth) Subject: Re: SO_ERROR 25 Nov 1997 08:56:26 -0800 Message-ID: <3479E233.F2A9AC7E.cygnus.gnu-win32@twinspot.net> References: <3 DOT 0 DOT 5 DOT 32 DOT 19971123151147 DOT 007a0970 AT 208 DOT 221 DOT 108 DOT 11> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com jman wrote: > Is SO_ERROR not in gnu-win32? > I'm trying to port/compile a program to Windows an get this error am > I using the wrong includes? > > `SO_ERROR' undeclared (first use this function) > (Each undeclared identifier is reported only once > for each function it appears in.) > > The includes are > #include > #include SO_ERROR is usually defined in . However, the definition of SO_ERROR seem to be missing in gnu-win32. The definition of the persistent socket options, which also begins with SO_ and are part of a socket's private data, shows up in for some reason (although included from ) but no SO_ERROR. A guess is that SO_ERROR might not have been implemented yet. On the other hand, as part of most C/C++ compilers for win16/win32, contains a definition of SO_ERROR. So it's there somewhere under the hood, but not as part of gnu-win32 as it seems. The section in looks like this: /* * Additional options. */ #define SO_SNDBUF 0x1001 /* send buffer size */ #define SO_RCVBUF 0x1002 /* receive buffer size */ #define SO_SNDLOWAT 0x1003 /* send low-water mark */ #define SO_RCVLOWAT 0x1004 /* receive low-water mark */ #define SO_SNDTIMEO 0x1005 /* send timeout */ #define SO_RCVTIMEO 0x1006 /* receive timeout */ #define SO_ERROR 0x1007 /* get error status and clear */ #define SO_TYPE 0x1008 /* get socket type */ You might want to throw this section into the code you're trying to compile and give it a try. Hold your hat though, in case... ;-) Tomas - 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".