Re: compile error

2008-10-07 Thread Robert Heller
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

Re: compile error

2008-10-07 Thread Andre Poenitz
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

Re: compile error

2008-10-07 Thread Thomas Maeder
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.

Re: Compile error with concept_check.h

2006-01-08 Thread Ulrich Eckhardt
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

Re: compile error when using selfcode .h file

2005-09-26 Thread Simon Buchan
[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 -