From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: netbd.h, sockets.h, in.h and types.h don't work Date: Sun, 28 May 2000 15:17:04 +0100 Organization: Customer of Planet Online Lines: 47 Message-ID: <39312A60.1FE853F0@bigfoot.com> References: <8gr1nk$i69$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: modem-163.titanium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg3.svr.pol.co.uk 959523495 30193 62.136.21.163 (28 May 2000 14:18:15 GMT) NNTP-Posting-Date: 28 May 2000 14:18:15 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 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. kknd_bl AT hotmail DOT com wrote: > every time I try to compile a program which includes netbd.h or > sys/sockets.h or sys/types.h or netinet/in.h, djgpp gives a lot of > error messages, like: sys/socket.h? > c:/djgpp/include/sys/socket.h error: windows.h, no such file or > directory > > and > > c:/djgpp/include/sys/socket.h error: windsock.h, no such file or > directory winsock.h? > and > > warning: 'nthol' redefined ntohl? > what can I do?? Where did you get a sys/socket.h file that includes windows.h or winsock.h? DJGPP doesn't come with sys/socket.h, so you must have either: a) Installed a socket library; b) Copied some Windows headers. I'm guessing you've installed an early version of libsocket (option a), since that used to have windows.h and winsock.h in it, IIRC. My advice is to remove these files and install a later version of libsocket or another networking library such as Watt-32. BTW netinet/in.h comes with DJGPP, but libsocket installs an updated version. You might want to reinstall netinet/in.h for the version of DJGPP you are using. Hope this helps, bye, -- Richard Dawe richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/