Andre Kirchner <supercroc1974@xxxxxxxxx> writes: > Hi, > > I have made this program to learn templates, but gcc > keeps says that there's an undefined reference to > `Dog<int,long>::Dog[in-charge](int,int,long,log)` at > the line marked > bellow. > Could someone show me what's wrong? [snip] gcc does not support seperate compilation for templates. You must #include the definition of each template in each translation unit which uses it.