From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Darryl Cook Newsgroups: gmane.os.tru64.managers Subject: gcc 3.2.3 problem with includes Date: Mon, 07 Jul 2003 14:56:45 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F09C26D.5060308@cs.cs.appstate.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1057604194 23505 80.91.224.249 (7 Jul 2003 18:56:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 7 Jul 2003 18:56:34 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Jul 07 20:56:32 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19ZbA8-00066q-00 for ; Mon, 07 Jul 2003 20:56:32 +0200 Original-Received: (qmail 4749 invoked by uid 5); 7 Jul 2003 18:57:01 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4680 invoked by uid 49493); 7 Jul 2003 18:57:01 -0000 Original-Received: from dlc@cs.cs.appstate.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.3/5.0):. Processed in 1.47567 secs); 07 Jul 2003 18:57:01 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 7 Jul 2003 18:56:59 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HHO001BI4MYDS@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 07 Jul 2003 14:56:58 -0400 (EDT) Original-Received: from cs.cs.appstate.edu (cs.appstate.edu [152.10.143.13]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HHO00IDL4MQNZ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 07 Jul 2003 14:56:51 -0400 (EDT) Original-Received: from cs.cs.appstate.edu (cookdl-0.cs.appstate.edu [152.10.134.74]) by cs.cs.appstate.edu (8.12.9/8.12.8) with ESMTP id h67Iuoa8416323 for ; Mon, 07 Jul 2003 14:56:50 -0400 (EDT) Original-To: Tru64 Mailing List X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 Xref: main.gmane.org gmane.os.tru64.managers:4774 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4774 Im having a problem with includes and gcc 3.1 and 3.2.3. If I compile the following: #include #include int main(void) { string card; while (cin >> card) { cout << "value = " << card[0] << endl; cout << "suit = " card[1] << endl; } } getcards.C: In function `int main()': getcards.C:6: `string' undeclared (first use this function) getcards.C:6: (Each undeclared identifier is reported only once for each function it appears in.) getcards.C:6: parse error before `;' token getcards.C:8: `cin' undeclared (first use this function) getcards.C:8: `card' undeclared (first use this function) getcards.C:10: `cout' undeclared (first use this function) getcards.C:10: `endl' undeclared (first use this function) cout is defined in the iostream.h file which is located at /usr/local/gcc/gcc-3.1/include/g++-v3/backward. Any ideas why it dont find the declaration for cout? thanks darryl