From: Weiqi Gao Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp compilation problem Date: Fri, 01 Oct 1999 20:49:31 -0500 Organization: CRL Network Services Lines: 26 Message-ID: <37F564AB.6F0099CA@a.crl.com> References: <000d01bf0c43$724aa560$071aac3e AT oemcomputer> NNTP-Posting-Host: a116022.stl1.as.crl.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i586) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > Joshua Newman wrote: > > c:\DJGPP\bin>gxx -o -v hello.exe hello.cpp > > message - > gxx.exe: hello.exe: No such file or directory (ENOENT) > In file included from hello.cpp:1: > c:/djgpp/lang/cxx/iostream.h:31: streambuf.h : No such file or > directory (ENOENT) > > [Other information snipped] The "-o" need to be followed immediately by "hello.exe" The "-o hello.exe" tells the compiler that you wanted the outout of this compilation run written into the file "hello.exe". "-o -v hello.exe" tells the compiler that you wanted the output of this compilation run written into the file "-v". Had you also mistakenly forgot to put "hello.exe" in your command line ("gxx -o -v hello.cpp"), you command would have succeded and you would have ended up with an executable named "-v.exe". -- Weiqi Gao weiqigao AT a DOT crl DOT com