yrin@c213~/hacking/div-tester>more test.cpp
#include <iostream>
using namespace std;
void main (void)
{
cout << "test" << endl;
}
yrin@c213~/hacking/div-tester>gcc -o test test.cpp
/tmp/cctwVlbh.o: In function `main':
/tmp/cctwVlbh.o(.text+0x4): undefined reference to `endl(ostream &)'
/tmp/cctwVlbh.o(.text+0xe): undefined reference to `cout'
/tmp/cctwVlbh.o(.text+0x13): undefined reference to `ostream::operator<<(char const *)'
/tmp/cctwVlbh.o(.text+0x1e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status
yrin@c213~/hacking/div-tester>
..Och varför vill inte detta fungera ? :l