delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/14/03:48:48

From: "John M. Aldrich" <fighteer AT cs DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019