Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Michael Olson" To: Subject: Linking in WSAGetLastError Date: Tue, 26 Sep 2000 21:27:06 -0400 Message-ID: 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' Thanks, Michael Olson -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com