I wrote a simple "hello world" program and it wont compile. The source is as follows:
bash-2.04$ cat hello.cpp
#include <iostream.h>
main()
{
cout << "Hello World!";
return 0;
}
I execute "gcc hello.cpp" and get the following error:
gcc hello.cpp
ld: 0711-317 ERROR: Undefined symbol: cout
ld: 0711-317 ERROR: Undefined symbol: .ostream::operator<<(char const *)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status