If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Two things I'd like to add:
1 - I know that standards-wise, this code is ugly. This is just my temporary thing that I'm using to remember about C++.
2 - "global-includes.hpp" includes stuff like #include <iostream>, etc.

Now, my question, why am I getting this ugly error? I've checked my Makefile and that looks good (below) and I don't understand why this is happening.

Re: Not sure what it is that I'm doing wrong with templates in this case

The template implementation must be visible at the time of instantiation. This is the case for almost every single compiler out there.

What you did was separate the implementation from the interface, and then compiled the implementation into separate modules. This is not correct. You must include the implementation with the interface. If you want an example, open up the <vector> or <list> file and see how these classes are implemented. You will see the entire code is within the header.

So either place the code inline into the template class, or #include the implementation at the end of your .h files. In any event, you also have to make sure you do not compile separate template modules as you're doing now. They are not separable compilation units.

As far as not finding things on google -- there must be thousands of easily found links saying this about templates. Here is one right here on this board: