www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/24/11:25:59

From: ian_dunbar AT my-dejanews DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Very Elementary Question from a beginner
Date: Wed, 24 Mar 1999 15:52:31 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 45
Message-ID: <7db1nq$94j$1@nnrp1.dejanews.com>
References: <36F81C4E DOT 5D949463 AT noplace DOT org>
NNTP-Posting-Host: 193.120.210.2
X-Article-Creation-Date: Wed Mar 24 15:52:31 1999 GMT
X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I)
X-Http-Proxy: 1.0 ns.euristix.ie:80 (Squid/1.NOVM.20), 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client unknown, 193.120.210.2
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <36F81C4E DOT 5D949463 AT noplace DOT org>,
  thisaddresswontwork AT noplace DOT org wrote:
> Hi, I am attempting to teach myself a bit about C++ using "Sam's teach
> yourself C++ in 24 hours:  Second Edition"  I am using the DJGPP
> compiler that was included with the book.  When I attempt to compile the
> file "hello.cpp" which is as I typed it:
>
> 1:  #include <iostream.h>
> 2:
> 3:  int main()
> 4:  {
> 5:     cout << "Hello World!/n";

this should be:
    cout << "Hello World!\n";
or
    cout << "Hello World!" << endl;

> 6:     return 0;
> 7:  }
>
> To compile this program, I am using the command "gxx hello.exe -o
> hello.cpp"

your command line is wrong there. It should be:

gxx -o hello.exe hello.cpp

> When I do this I get the following error:
> "gxx.exe:  installation problem, cannot exec 'stubify':  No such file or
> directory (ENOENT)

This may be solved by changing your command line to the one above. I get a
slightly different message when I tried your way. I got:

gxx.exe: hello.exe: No such file or directory (ENOENT)

so it's possible that you have an installation problem, in which case reading
the FAQ is your best bet. I'd try it with the altered command line first
though.

Ian.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

- Raw text -


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