delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/16/16:51:13

Message-ID: <000801c0de49$750c67a0$d16168d5@self>
From: "greg.pearce" <greg DOT pearce AT ntlworld DOT com>
To: <djgpp AT delorie DOT com>
Subject: C++ problem
Date: Wed, 16 May 2001 21:47:42 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C0DE51.D5D50A80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I try to compile a c++ program called cplus, this is what wrote in my =
bloodshed compiler:

gpp cplus.cpp -o cplus.exe
#include <iostream.h>

int main()
{
    cout << "Hello world!, this is easy!";
    return 0;
}

i then saved it as cplus.cpp and then copyed and pasted it into the gpp =
compiler
it gave me the message:

c:/djgpp/bin/ld.exe:C:\DJGPP\BIN\CPLUS.~CP: file format not recognized; =
treating
as linker script
c:/djgpp/bin/ld.exe:C:\DJGPP\BIN\CPLUS.~CP:1: parse error


I have consulted the FAQ and tutorial....
Any help?
plz e-mail me back

Greg Pearce

------=_NextPart_000_0005_01C0DE51.D5D50A80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I try to compile a c++ program called =
cplus, this=20
is what wrote in my bloodshed compiler:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>gpp cplus.cpp -o cplus.exe<BR>#include=20
&lt;iostream.h&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int main()<BR>{<BR>&nbsp;&nbsp;&nbsp; =
cout &lt;&lt;=20
"Hello world!, this is easy!";<BR>&nbsp;&nbsp;&nbsp; return=20
0;<BR>}<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i then saved it as cplus.cpp and then =
copyed and=20
pasted it into the gpp compiler</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>it gave me the message:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>c:/djgpp/bin/ld.exe:C:\DJGPP\BIN\CPLUS.~CP: file=20
format not recognized; treating</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>as linker script</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>c:/djgpp/bin/ld.exe:C:\DJGPP\BIN\CPLUS.~CP:1: parse=20
error</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have consulted the FAQ and=20
tutorial....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any help?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>plz e-mail me back</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Greg Pearce</DIV></FONT></BODY></HTML>

------=_NextPart_000_0005_01C0DE51.D5D50A80--

- Raw text -


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