[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compile error
From: |
Andre Poenitz |
Subject: |
Re: compile error |
Date: |
Tue, 7 Oct 2008 20:14:29 +0200 |
User-agent: |
tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/2.6.24-19-generic (i686)) |
Randy AC7NJ <ac7nj@arrl.net> wrote:
> the error I get is
> myfirst.c:5: error: 'cout' was not declared in this scope
>
> / / myfirst.c --displays a message
> #include <iostream>
> int main(void)
> {
> cout << "come up and C++ me sometime.";
> cout << "\n";
Try
std::cout << "come up and C++ me sometime.";
std::cout << "\n";
> return 0;
> }
Andre'