Mail Archives: djgpp/2001/05/16/16:51:13
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> </DIV>
<DIV><FONT face=3DArial size=3D2>gpp cplus.cpp -o cplus.exe<BR>#include=20
<iostream.h></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>int main()<BR>{<BR> =
cout <<=20
"Hello world!, this is easy!";<BR> 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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>Greg Pearce</DIV></FONT></BODY></HTML>
------=_NextPart_000_0005_01C0DE51.D5D50A80--
- Raw text -