Mail Archives: djgpp/2001/08/31/07:15:08
DAVID F FOX <tjfox44 AT msn DOT com> wrote:
> Where does the compiler expect to find the C++ program I have
> written?
"Here", i.e. in the "current working directory" --- wherever that
currently is. I.e. you're supposed to either pass the full pathname
of your source file, or do as most users learn to do, sooner or later:
'cd' to the directory containing your sources. This makes "here" be
where your sources are, and all should be well. So, in a nutshell:
d: # only if you aren't on the right drive letter, yet
cd \some\where\nice # wherever you keep your own sourcefiles
gxx myfile.cpp
> I entered the program using notepad because I can't figure out how
> to access emacs.
That may well have been another part of the problem. Notepad has a
very nasty habit of attaching a .txt extension to the filename, even
if you explicitly told it you want foo.cc or foo.cpp. Check the
actual filename using "dir" in your source directory.
And what exactly was your problem with "emacs"? Whatever it was ---
instructions you couldn't understand, or some (to you)
incomprehendable errormessages ---- show it here, otherwise we won't
be able to assist.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -