This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Linking in WSAGetLastError
- To: <cygwin at sourceware dot cygnus dot com>
- Subject: Linking in WSAGetLastError
- From: "Michael Olson" <olson at cs dot odu dot edu>
- Date: Tue, 26 Sep 2000 21:27:06 -0400
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