| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Originating-IP: | [128.54.220.195] |
| X-Originating-Email: | [yupeng_ AT hotmail DOT com] |
| From: | "Peng Yu" <yupeng_ AT hotmail DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | g++ error |
| Date: | Sat, 28 Jun 2003 09:36:52 -0700 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
| Message-ID: | <LAW15-DAV71nkrS4mWG0001e592@hotmail.com> |
| X-OriginalArrivalTime: | 28 Jun 2003 16:37:04.0477 (UTC) FILETIME=[81DD80D0:01C33D93] |
Hi,
When I tried to compile this file by g++, I got a error.
#include <iostream>
int main(){
cout << "Hello World" << endl;
}
errors are:
test.C: In function `int main()':
test.C:3: `cout' undeclared (first use this function)
test.C:3: (Each undeclared identifier is reported only once for each
function
it appears in.)
test.C:3: `endl' undeclared (first use this function)
Do I need to install some library?
Peng
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |