Those linker errors are expected. G++ relies upon weak symbols for implicit template instantiation. On systems without that functionality, one needs to explicitly instantiate templates. One can see how to instantiate the templates needed by libstdc++ in the libstdc++ testsuite 27_io. Look for GXX_WEAK. David