#1 Compile failure: cout undeclared

v1.0_(example)
open
nobody
5
2005-06-18
2005-06-18
No

Hiyas!
When compiling your program, I noticed an issue with a
SuSE Linux 9.1 stock install.

C++ doesn't define the functions cin and cout in the
global namespace.
The library <iostream> must be included. The functions
cin and cout will then reside in the 'std' namespace.

The following diff contains the changes I made to get a
clean compile:
----8<----Cut Here----8<----
diff IceWmMenuConfig.cpp IceWmMenuConfig.cpp.orig
27d26
< #include <iostream>
30,31d28
< using namespace std;
----8<----Cut Here----8<----

Versions:
Linux rackspace 2.6.5-7.155.29-default #1 Thu Jun 2
12:07:05 UTC 2005 i586 i586 i386 GNU/Linux

g++ (GCC) 3.3.3 (SuSE Linux)

Thanks!

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks