From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: GCC compiler help Date: Mon, 13 Apr 1998 23:02:43 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 41 Message-ID: <3532D1D3.50D3@cs.com> References: <35329B18 DOT 2BB1D89B AT bellatlantic DOT net> NNTP-Posting-Host: ppp204.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 aadhanda AT bellatlantic DOT net wrote: > > Hello, > I am new to C++ and DJGPP. When I try to compile the file > hello.cpp it says: > gcc.exe: hello.cpp: No such file or directory (ENOENT) > gcc.exe: No input files > > I read the readme.txt and could not find the problem. The file is > saved in the bin subdirectory where gcc.exe is located. if somebody > could help it would be appreciated. Thanks. You shouldn't put your own files in any of the DJGPP directories. As long as the 'bin' directory is in your PATH, you can compile from anywhere on your computer. I recommend creating a separate directory for your programs. Second, to compile C++ programs, use gpp instead of gcc. See 'readme.1st' for sample command lines. Third, if the compiler isn't finding the file 'hello.cpp', are you sure you're running it from the directory where the file is? If so, are you sure the file has the right name? If you try to write code in Windows 95 Notepad, for example, it sometimes saves it with a .txt extension even if you tell it to use another (the file might be 'hello.cpp.txt', which won't work). Strictly speaking, not finding a _source_ file has nothing whatsoever to do with DJGPP. If you're confused about how to use your DOS prompt, please try to find some help locally, as basic DOS tutorials are not within the scope of this newsgroup. hth! -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer/ | | day be a spectacular MUD... | ICQ UIN#: 7406319 | | Plan: To make Bill Gates suffer | HEAT User ID: Fighteer | ---------------------------------------------------------------------