Mail Archives: djgpp/1998/04/14/03:48:48
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 |
---------------------------------------------------------------------
- Raw text -