Greetings Friends:
I am stuck with a compilation error that I have not been able to resolve. I was able to duplicate this error with a test program so whatever I am doing (or not doing), it is the same. Please see the code below. The error is actually from the linking step. I am receiving an Unresolved External Symbol error. This seems to be from the constructor but I can’t determine where the error is.
Please look at this.
#include "testType.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
testType<int> something;
char end;
cout << "poof";
cout << "end?";
cin >> end;
}
template<class elemType>
class testType
{
public:
testType();
private:
int nothing;
};
Regards,
Danni