delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/13/03:33:20

From: "Gavin Carter" <gavin_carter AT dial DOT pipex DOT com>
To: <djgpp AT delorie DOT com>
Subject: Just Starting and Need A Little Help To Get My Feet off The Ground
Date: Tue, 13 Jan 1998 08:28:59 -0000
Message-ID: <01bd1ffd$4bf61f90$01c3a5c2@gavin.GavNet.com>
MIME-Version: 1.0

This is a multi-part message in MIME format.

------=_NextPart_000_0036_01BD1FFD.4BF61F90
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I've just started programming in C++, I already program in Pascal using =
Delphi, but I've decided it's time to try out different languages. I =
currently use Microsoft Visual C++ 5.0 to compile my C++ source code, =
but I want to try the DJGPP compiler. I've just downloaded all the files =
I need and have set it all up on my machine. I seem to be able to =
develop C code fine, but I'm having problems with C++ code.=20
Can anyone tell me what I need to type in at the command prompt to get a =
valid executable file from the below C++ source code saved in a file =
call 'g.cpp'
=20
// g.cpp
// A Simple Example of a Program
#include <iostream.h>=20
int main()
{
cout << "Hello, World \n";
return 0;
}=20
=20
Just a very very simple bit of code, but I need to know how to compile =
it. =20
=20
Thanks For All Your Help=20
=20
Yours=20
Gavin Carter
=20

------=_NextPart_000_0036_01BD1FFD.4BF61F90
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>I've just started =
programming in C++,=20
I already program in Pascal using Delphi, but I've decided it's time to =
try out=20
different languages. I currently use Microsoft Visual C++ 5.0 to compile =
my C++=20
source code, but I want to try the DJGPP compiler. I've just downloaded =
all the=20
files I need and have set it all up on my machine. I seem to be able to =
develop=20
C code fine, but I'm having problems with C++ code. </FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>Can anyone tell me what =
I need to=20
type in at the command prompt to get a valid executable file from the =
below C++=20
source code saved in a file call 'g.cpp'</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT><FONT=20
color=3D#ff0000></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#ff0000>// g.cpp<BR>// A =
Simple Example=20
of a Program<BR>#include &lt;iostream.h&gt;</FONT></FONT><FONT=20
color=3D#ff0000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2><FONT =
color=3D#ff0000>int=20
main()<BR>{<BR>cout &lt;&lt; &quot;Hello, World \n&quot;;<BR>return=20
0;<BR>}</FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2><FONT=20
color=3D#ff0000></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#000000>Just a very very =
simple bit of=20
code, but I need to know how to compile it. </FONT></FONT><FONT=20
color=3D#000000></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
color=3D#000000></FONT></FONT><FONT=20
color=3D#000000></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#000000>Thanks For All =
Your=20
Help</FONT></FONT><FONT color=3D#000000></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
color=3D#000000></FONT></FONT><FONT=20
color=3D#000000></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
color=3D#000000>Yours</FONT></FONT><FONT=20
color=3D#000000></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2><FONT =
color=3D#000000>Gavin=20
Carter</FONT><BR></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0036_01BD1FFD.4BF61F90--

- Raw text -


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