From: Gordon Talge Newsgroups: comp.os.msdos.djgpp Subject: Re: Error with gcc.exe Date: Tue, 22 Jul 1997 22:38:31 -0700 Organization: PE.net - Internet access from the Press-Enterprise Company Lines: 39 Message-ID: <33D598D7.1CC2@pe.net> References: <5qke7g$eta$1 AT news DOT fsu DOT edu> Reply-To: gtalge AT pe DOT net NNTP-Posting-Host: victoria.pe.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-User: gtalge 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) > What works for me is: gcc -o jolt.exe ssping.c It looks like the compiler is searching for your includes and can't find them in your path. Make sure gcc know where to look for the files it needs. -- Gordon -- ,,, (. .) +-----------------------ooO-(_)-Ooo----------------------+ | Gordon Talge WB6YKK e-mail: gtalge AT pe DOT net | | Department of Mathematics QTH: Loma Linda, CA | | Mt. San Jacinto College Lat. N 34° 03.1' | | San Jacinto, CA .oooO Long. W 117° 15.2' | | - E Aho Laula - ( ) Oooo. - Wider is Better - | +------------------------\ (---( )----------------------+ \_) ) / (_/