symbol referencing error

Undefined first referenced
symbol in file
std::basic_ostream<char, std::char_traits<char> >::operator<<(int)/var/tmp//ccTR
std::cerr /var/tmp//ccTRcjui.o
std::cout /var/tmp//ccTRcjui.o
std::ios_base::Init::~Init [in-charge]()/var/tmp//ccTRcjui.o
std::ios_base::Init::Init[in-charge]()/var/tmp//ccTRcjui.o
__gxx_personality_v0 /var/tmp//ccTRcjui.o
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_trvar/tmp//ccTRcjui.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

i have only one file... and it is meant to read files from a directory.. whos name[for the time being ] i have hard coded...
anyidea why i am getting the error?

thnx..

check for header file inclusion.
If possible please post the code.