This question already has an answer here:
I have the following problem :
In my header:
Class A{
public:
A();
~A();
template<typename.. Args>
void executeA(int i, Args ...kargs);
};
In the cpp file:
A::A(){};
A::~A(){};
template<typename... Args>
void A::executeA(int i, Args ...kargs){
// do stuff
}
In the main:
A* a = new A();
a->executeA(1, 1.5f, 3.33f);
And I receive the following error:
Error 15 error LNK2019: unresolved external symbol "public: void __thiscall A::executeA<float,float>(int,float,float)"
Aucun commentaire:
Enregistrer un commentaire