ld: Undefined symbols: なんだから.oを吐くだけじゃ出ないはずだけどなあ。
うちでは
% gcc -c hoge.cpp
では出ないし、
% gcc hoge.cpp -lstdc++
でも出ない。