delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/26/14:30:05

From: shayoom AT hotmail DOT com (Jonquil)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: about: aout.exe
Date: 26 Nov 2002 11:24:41 -0800
Organization: http://groups.google.com/
Lines: 61
Message-ID: <63b211f7.0211261124.5adfc6a7@posting.google.com>
References: <3DDFA0CA DOT 000009 DOT 03244 AT DELL> <Xns92CF728D3F9Aasu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <63b211f7 DOT 0211240900 DOT a1f0a57 AT posting DOT google DOT com> <Xns92D096DC170A6asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <63b211f7 DOT 0211250711 DOT 7d6a37a5 AT posting DOT google DOT com> <Xns92D17BFF1E467asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8>
NNTP-Posting-Host: 213.189.83.103
X-Trace: posting.google.com 1038338682 26180 127.0.0.1 (26 Nov 2002 19:24:42 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 26 Nov 2002 19:24:42 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> 
> first, it is good practice to post the exact error messages you get: help 
> others help you.
i couldnt read the whole error statement because it was cut off the
screen on the right, i tried to resize it by maximizing the screen to
full view but the text size changes and i still couldnt read it all...
thats why i couldnt post it. sorry. though when i used gpp instead of
gcc, i didnt get any errors (see my previous message)
 
> by the way, make sure you use the standard C++ headers, rather than the 
> old-style headers. the latter will cause gcc to issue warnings:
i add using namespace std; to my programs and they compile
correctly... even though i still dont fully understand what that line
is doing.. opening standard libraries???
 
> #include <iostream>
> 
> int main()
> {
>   std::cout << "Hello World!\n";
> }

question, why didnt you add the return 0; line? is it the new
compiler, or is C++ changing... someone mentioned that C++ changes...
is that so true?? i thought it was just the versions of GCC thats are
changing to make the coding easier for us, no?

Question, i usually compile a program, click on PROJECTS > ADD ITEM
and add the one im working on and run it. simple as that. ok.

but i just tried a new way, i open RHIDE, click on PROJECTS>OPEN
PROJECT and select hello.cpp for example and open it. i click on ADD
ITEM and add hello.cpp to the opened project. i run it and it works.
but there was a difference from my old way and this way.

in the old way, my programs run using aout.exe (i have no idea where
is came from or what it stands for!) but i think it has to do with
projects and running programs.. anyway, the same aout.exe runs all my
programs, but every time i run i program i have to make sure from
WINDOWS>LIST that the one i want to run is the only one there..
otherwise the first one listed is the only one that will run.

the second way, i got a hello.gdt and a hello.gpr they are projects i
guess, but is this the correct way? should i make a project out of
every program i write?

before i had this compiler/editor i used to run an older version on
windows ME and when i run a program i get a hello.o and hello.exe with
my hello.cpp, shouldnt i just get the same thing here too? or is the
new way a better one? i am new to all of this and i would really like
it if you or anyone can clear things out for me. thanks :)

one last thing, when i am in DOS, and i just ran a program, i want to
print the output i see.. someone told me to use the print screen
button, but is there another way? thanks

regards,
Shaymaa

PS i know i ask so many things, and you guys have been really patient
with me.. thank you :)

- Raw text -


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