At Tue, 7 Oct 2008 08:50:41 -0700 (PDT) Randy AC7NJ <[EMAIL PROTECTED]> wrote:
>
> the error I get is
> myfirst.c:5: error: 'cout' was not declared in this scope
>
> / / myfirst.c --displays a message
> #include
> int main(void)
> {
> cout << "come up and C++ me sometime.";
> cout
Randy AC7NJ <[EMAIL PROTECTED]> wrote:
> the error I get is
> myfirst.c:5: error: 'cout' was not declared in this scope
>
> / / myfirst.c --displays a message
> #include
> int main(void)
> {
>cout << "come up and C++ me sometime.";
>cout << "\n";
Try
std::cout << "come
Randy AC7NJ <[EMAIL PROTECTED]> writes:
> myfirst.c:5: error: 'cout' was not declared in this scope
Good.
> / / myfirst.c --displays a message
If your example is from a textbook, that textbook must be pretty old.
> #include
> int main(void)
> {
> cout << "come up and C++ me sometime.
ikinal wrote:
> We're seeing this error when building:
> ++ -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include
> -I/usr/local/include/libxml2
> -I/usr/local/gcc-3.3/include/c++/3.3
> -I/usr/local/gcc-3.3/include/c++/3.3/sparc-sun-solaris2.8
These latter two are weird. Normally, g++ knows
[EMAIL PROTECTED] wrote:
I am in g++ or gcc 3.4.4 (tested on both linux ubuntu kernel 3.6.8 and
cygwin 1.5.18-1 dll on window xp-sp2)
I like to test and using the following .h (lib? I do not know yet to
make it become lib)
http://www.cs.duke.edu/~ola/ap/code/apstring.h
by simple test program
-