http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61072
--- Comment #3 from agostino.cavarero at gmail dot com --- Tested again using version 4.3.4. It works as expected: Command: g++ stringTemplateTest.cpp stringTemplateTestMain.cpp Output: [...] In function `main': stringTemplateTestMain.cpp:(.text+0x66): undefined reference to `_ZN9TempClassILZ5kCiaoEE11printStringEv' collect2: ld returned 1 exit status