Hi folks! I have to use gcc now. What fun this is. At the moment I can't even get hello world to build!

Code:
#include <iostream>

int main(void) {

   std::cout << "hello world" ;

}
gcc says this:
undefined reference to 'std::cout'

so I guess I need to link to a library. How do I do this?