From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Error with gcc.exe Date: Fri, 18 Jul 1997 21:43:58 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 66 Message-ID: <33CFE39E.1CB6@cs.com> References: <5qke7g$eta$1 AT news DOT fsu DOT edu> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp104.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Brenton R Bailey wrote: > > I am trying to compile a program written in c. And I am having > trouble compiling it with DJGPP's gcc.exe. I named the file ssping.c and > I do this. > C:\DJGPP\bin>gcc ssping.c -o jolt.exe > ssping.c:24: stdio.h: No such file or directory (ENOENT) > ssping.c:25: sys/types.h: No such file or directory (ENOENT) > ssping.c:26: sys/socket.h: No such file or directory (ENOENT) > ssping.c:27: netdb.h: No such file or directory (ENOENT) > ssping.c:28: netinet/in.h: No such file or directory (ENOENT) > ssping.c:29: netinet/in_systm.h: No such file or directory (ENOENT) > ssping.c:30: netinet/ip.h: No such file or directory (ENOENT) > ssping.c:32: string.h: No such file or directory (ENOENT) > ssping.c:33: arpa/inet.h: No such file or directory (ENOENT) > > ohh and I am using win 95. Does anyone have any clue as to why this is > happening. Are there other files I need to download of DJGPP. There were > so many I just downloaded a few of them and one with the gcc.exe compiler > in it. I really need some help and if you could send me some e-mail > directly it would be appreciated. You haven't set your environment up correctly as instructed in the 'readme.1st' file. You must set the environment variable "DJGPP" to point to the location of the 'djgpp.env' file in your main DJGPP directory, like so: SET DJGPP=C:/DJGPP/DJGPP.ENV Put this in your autoexec.bat. You also need to add the C:\DJGPP\BIN directory to your PATH. Finally, you are apparently trying to build a socket networking application in a DOS environment. This is a major no-no, as DOS does not natively support sockets, and DJGPP does not have the required library code in any case. If you really want to do this, you may want to try out tcplib (ftp://ftp.delorie.com/pub/djgpp/contrib/tcplib.zip) or wattcp (don't have the URL offhand). BTW, here's an excerpt from a post by DJ Delorie, retrieved via DejaNews (http://www.dejanews.com/): --snip-- Subject: Re: WATTCP From: DJ Delorie Date: 1997/01/07 Message-Id: <199701071331 DOT IAA08643 AT delorie DOT com> Newsgroups: comp.os.msdos.djgpp [More Headers] > Is there a newer version of the WATTCP library for DJGPP? The version I > have does not compile. Missing some files (uio.h, features.h, etc). The DJGPP web pages point to a V2 version of wattcp. I've made some bugfixes for my Lynx port, which are in ftp://ftp.delorie.com/pub/dj/lynx26s.zip --un-snip-- -- --------------------------------------------------------------------- | John M. Aldrich |"A competent and self-confident person| | aka Fighteer I | is incapable of jealousy in anything.| | mailto:fighteer AT cs DOT com | Jealousy is invariably a symptom of | | http://www.cs.com/fighteer | neurotic insecurity." - Lazarus Long| ---------------------------------------------------------------------