From: jaxonjr AT my-deja DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: NEED HELP COMPILING 1ST PROGRAM!!!!!!!!! Date: Sun, 07 May 2000 19:26:44 GMT Organization: Deja.com - Before you buy. Lines: 47 Message-ID: <8f4g19$jc$1@nnrp1.deja.com> References: <20000507144044 DOT 03969 DOT 00001713 AT ng-fg1 DOT aol DOT com> NNTP-Posting-Host: 166.102.220.166 X-Article-Creation-Date: Sun May 07 19:26:44 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95) X-Http-Proxy: 1.1 x25.deja.com:80 (Squid/1.1.22) for client 166.102.220.166 X-MyDeja-Info: XMYDJUIDjaxonjr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <20000507144044 DOT 03969 DOT 00001713 AT ng-fg1 DOT aol DOT com>, davidtmdu AT aol DOT com (Davidtmdu) wrote: > I bought the book SAMS teach yourself c++ in 24 hours about a year ago - but in > my opinion might as well be 24 years. As I am still trying to compile: > > #include > > int main() > { > cout << "Hello World!\n"; > return 0; > } > > What am I doing wrong? > I run windows 95 and use DJGPP. > Could someone out there out of the kindness of their heart tell me EXACTLY what > to do and how to do it step by step! > So here's what I do: > I write all that stuff up there on notepad and save it as hello.cpp on c:\ > drive > I go to RUN, and type: > gxx -o This should be : gxx c:\hello.cpp -o hello.exe. Don't use the brackets. > > I'm pretty sure it's wrong, but what do to get it compiled to obj. file? > By the way, this is the error message I get : > > gxx.exe: : No such file or directory (ENOENT) > > WHAT????????? It's reading it as "" instead of "c:\hello.cpp". -- Peace! Sent via Deja.com http://www.deja.com/ Before you buy.