Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stupid g++ question



>There are better ways of doing this, but the addition of using namespace
>std; solves the problem. 

Another one is to just add std:: in front of cout & string, to make it
std::cout and std::string.

>Apparently, Red Hat 7.2 (gcc 2.96) solves this either as a compiler
>default or by altering the header files. 

Sometimes, when you add the '.h' to the include name, it is an ad hoc
standard to put everything into the global namespace. You really should
be including <iostream>, not <iostream.h>. Probably later versions don't
adhere to this unofficial standard.


-- 
Jonathan Arnold     (mailto:jdarnold at buddydog.org)
Amazing Developments       http://www.buddydog.org

There is only one satisfying way to boot a computer. 
   --J.H.Goldfuss






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org