delorie.com/archives/browse.cgi | search |
Message-ID: | <002401bfbdd7$2054a620$650f3acb@default> |
From: | "Alastair Hogge" <al_ AT tpg DOT com DOT au> |
To: | "DJGPP" <djgpp AT delorie DOT com> |
Subject: | string wuh; |
Date: | Mon, 15 May 2000 05:03:42 +1000 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
Reply-To: | djgpp AT delorie DOT com |
This is a multi-part message in MIME format. ------=_NextPart_000_0021_01BFBE2A.F10E18C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable My code: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #include <string.h> int main(void) { string foo; return 0; } My compiler messages: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D gpp string.cc -o string.exe string.cc: In function 'int main()': string.cc:5: 'string' undeclared (first use this function) string.cc:5: (Each undeclared indentifier is reported only once string.cc:5: for each function it appears in.) string.cc:5: parse error before ';' -- Al ------=_NextPart_000_0021_01BFBE2A.F10E18C0 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.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>My code:</FONT></DIV> <DIV><FONT = size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D</FONT></DIV> <DIV><FONT size=3D2>#include <string.h></FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>int main(void)<BR>{<BR> string=20 foo;</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2> return 0;<BR>}</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>My compiler messages:</FONT></DIV> <DIV><FONT size=3D2> <DIV><FONT = size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D</FONT></DIV> <DIV>gpp string.cc -o string.exe</DIV> <DIV>string.cc: In function 'int main()':</DIV> <DIV>string.cc:5: 'string' undeclared (first use this function)</DIV> <DIV>string.cc:5: (Each undeclared indentifier is reported only = once</DIV> <DIV>string.cc:5: for each function it appears in.)</DIV> <DIV>string.cc:5: parse error before ';'</DIV> <DIV> </DIV> <DIV>--</DIV> <DIV>Al</DIV></FONT></DIV> <DIV><FONT size=3D2><BR> </DIV></FONT></BODY></HTML> ------=_NextPart_000_0021_01BFBE2A.F10E18C0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |