X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc problem , need help with djgpp Date: Sun, 04 Nov 2007 21:56:23 -0300 Organization: Aioe.org NNTP Server Lines: 62 Message-ID: References: <371770 DOT 85584 DOT qm AT web30005 DOT mail DOT mud DOT yahoo DOT com> NNTP-Posting-Host: drs+/V1EYJj35KhLd2EVxg.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT aioe DOT org In-Reply-To: User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Daniel Oljaca escreveu: > > Dear Djgpp Friend, > > I downloaded the files and unzipped them into c:\djgpp. I am > however having a problem, when I use the gcc command to compile I get > this error message: > > gcc samp.c -o samp.exe > cc1.exe: error: samp.c: No such file or directory > > I believe I downloaded the correct files for Windows XP. These are the > files which I downoaded: > > unzip32.exe > djdev203.zip > faq230b.zip > readme.1st > rhid15ab.zip > bnu217b.zip > gcc422b.zip > gdb611b.zip > mak3791b.zip > txt411b.zip > > from http://www.delorie.com/pub/djgpp/current/ > > I downloaded all of these to C:\djgpp and unzipped them. I got the > C:\djgpp\bin subdirectory and all the other subdirectories. They contain > gcc.exe, as.exe and subtify.exe. > > I also clicked on control pannel, system, advanced, envirnoment > variables and added > Path = C:\djgpp\bin > Djgpp = C:\djgpp\djgpp.env > > I then made a directory C:\cprograms to hold my sample programs. I > created a samp.c program in note pad with the following code: > > #include > int main(void) > { > printf("Hello, world!\n"); > return 0; > } > > I saved it and then I tried to run the compile command in C:\cprograms, > but I recieved the error message that I mentioned above. I am not sure > where I went wrong on installing this or if you have any idea what that > error message means. If you can fill me in on some info for this problem > I would greatly appreciate it. Thanks allot, hope to hear back from you, > > Sincerely, > Daniel Oljaca The message seems to indicate that the file you created with notepad: or has been appended the extension .txt to it; or has been saved in another folder/subdirectory than the one you expected (C:\cprograms). In any event, the first thing to unravel the mystery is to check the presence of samp.c in c:\cprograms.