Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Michael Olson" <olson@cs.odu.edu>
To: <cygwin@sourceware.cygnus.com>
Subject: Linking in WSAGetLastError
Date: Tue, 26 Sep 2000 21:27:06 -0400
Message-ID: <BKEIKICKEPLJGGLFFGDKKECACAAA.olson@cs.odu.edu>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal
In-Reply-To: <39D11AE3.F7662D79@cygnus.com>

If there is a better place to ask questions like these someone please let me
know.

I'm using Cygwin 1.1.4 under Win2K SP1 and I can't get WSAGetLastError to
link in,
not sure why. I've tried both -lwsock32 -lws2_32 and I get an undefined
reference error.
I checked the def files for both of them in the sources and they both export
the function.

e.g.

gcc -o sendmail alias.o arpadate.o clock.o collect.o conf.o convtime.o
daemon.o deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o
mci.o mime.o parseaddr.o queue.o readcf.o recipient.o safefile.o savemail.o
snprintf.o srvrsmtp.o stab.o stats.o sysexits.o trace.o udb.o usersmtp.o
util.o version.o -lbind -ladvapi32 -lws2_32
conf.o(.text+0x2c74):conf.c: undefined reference to `WSAGetLastError'
<Lots more missing WSAGetLastError messages here.>

Thanks,
     Michael Olson
     <olson@cs.odu.edu>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

