Are you using

Code:
#include <iostream.h>
if so, that is non-standard ... use the standard

Code:
#include <iostream>