I tried the recommendation here. I have the following class with a templated member function defined in the implementation as follows:
Header (with compiler DLL import directive evaluated as __declspec(dllimport)
in client application):
class __declspec(dllimport) A {
...
template<typename T> bool func(T&) const;
}
Implementation:
template<typename T> bool A::func(T&) {...}
Due to some constraints, I can't define it the header. In the standalone library I get no build errors. But in the client application, built on the same platform using same compiler (x64 vs100), the linker error I get is:
error LNK2019: unresolved external symbol bool "public: bool __cdecl A::func(...)"
Appreciate any ideas on this. Thanks!