Re: simple error woth templates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux