delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | "Michael Olson" <olson AT cs DOT odu DOT edu> |
To: | <cygwin AT sourceware DOT cygnus DOT 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 |
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 AT cs DOT odu DOT edu> -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |