delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/07/14:47:11

From: davidtmdu AT aol DOT com (Davidtmdu)
Newsgroups: comp.os.msdos.djgpp
Subject: NEED HELP COMPILING 1ST PROGRAM!!!!!!!!!
Lines: 31
NNTP-Posting-Host: ladder05.news.aol.com
X-Admin: news AT aol DOT com
Date: 07 May 2000 18:40:44 GMT
Organization: AOL, http://www.aol.co.uk
Message-ID: <20000507144044.03969.00001713@ng-fg1.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 <iostream.h>

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 <c:\hello.cpp> -o <hello.exe>

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: <c:\hello.cpp>: No such file or directory (ENOENT)

WHAT?????????

Thanks for your time
David Du

- Raw text -


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