[ns] Compiling ns under Red Hat 8.0 (GCC 3.2)
George Riley
riley@ece.gatech.edu
Mon Oct 7 12:30:04 2002
> Wow. Indeed. From what I see, most of them are result of using
> deprecated syntax, and/or wrong includes. The fact that "cout" is not
> found, for instance is quite interesting;
The gcc 2.xx compilers were a bit lenient with namespaces. Newer gcc
versions (as well as newer compilers on Sun and others), are more picky.
Usually, adding
using namespace std;
after all "#include" commands will ease the problem quite a bit (in
particular this will "find" the cout variable).
George