Linking in WSAGetLastError

Michael Olson olson@cs.odu.edu
Tue Sep 26 18:26:00 GMT 2000


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



More information about the Cygwin mailing list