delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/20/05:15:23

From: master AT internexus DOT net (Laszlo Vecsey)
Subject: mingw32 sock-faq examples?
20 Jun 1998 05:15:23 -0700 :
Message-ID: <Pine.LNX.3.96.980619191419.14088A-100000.cygnus.gnu-win32@micro.internexus.net>
Reply-To: Laszlo Vecsey <master AT internexus DOT net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Has anyone gotten the Unix Sockets FAQ examples to compile with mingw32?

	http://www.ibrado.com/sock-faq/

I'm using the stock egcs-mingw32 distribution from cygnus, linking the
examples against -lwsock32 (including windows.h and windows32/sockets.h),
but listen(), accept(), connect() etc are always failing with -1.
gethostname() also doesnt work, though IP addresses seem ok.

I've checked the mailing list archive, and tried the suggestion of
undefining WIN32, WINNT, _WIN32, and even __WIN32__.. no luck. If I nm and
grep my libwsock32.a and compiled test binaries, I notice things like
'listen AT 8' and 'accept AT 12' .. whats wrong?

- lv

-
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