From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: sys/select.h and sys/socket.h Date: Sat, 17 May 2003 18:45:55 +0100 Lines: 35 Message-ID: <3EC67553.16C5DBDF@phekda.freeserve.co.uk> References: NNTP-Posting-Host: 62.136.44.217 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news6.svr.pol.co.uk 1053193900 22217 62.136.44.217 (17 May 2003 17:51:40 GMT) NNTP-Posting-Date: 17 May 2003 17:51:40 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. Bart van den Burg wrote: > > "Bart van den Burg" wrote in message > news:b9o0gl$cjo$1 AT reader10 DOT wxs DOT nl... > > hi > > > > I'm wondering if it's possible to work with sockets in DJGPP > > i'm getting all kinds of undefined references like '_send' and '_socket' > > source works fine in linux > > hmm not getting those errors anymore > forgot the -lsocket switch > > it compiles fine now, but instead, I get this error when it tries to > connect: > Connection returned: No such device (ENODEV) > > any ideas? [snip] Which socket library are you using? Which operating system are you using? If you're using libsocket, don't. It's not maintained anymore and doesn't work properly on anything other than Windows '95. (I used to maintain it.) If you're using Watt-32, then it will only work under DOS, unless you install a packet-driver emulation layer under Windows called NDIS3PKT (I think). Check the Watt-32 docs for more information. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]