Happy New Year, all!

I've initiated a return to studying C++, but am having trouble linking a simple program (following log edited for ease of reading):

jonathan$ cat hello.cpp

#include<iostream>
int main(){
        std::cout << "Hello World!\n";
        return 0;
}

jonathan$ gcc -o hello hello.cpp

ld: Undefined symbols:
std::ios_base::Init::Init()
std::ios_base::Init::~Init()
std::cout
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
___gxx_personality_v0


Can someone tell me what's missing? --TIA as always, Jonathan


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to