As with the earlier examples, the template above is located in a separate library. I only have a single base class that uses the above template (so far) in the current library. These should all be produced by the template:
1 2 3 4 5 6 7 8 9 10 11 12
|
class SIMILEAPI_EXPORT IIMObject : public NamedLibraryObject<QByteArray>
{
public:
inline IIMObject(const QByteArray& name, __uint32 referenceID) : NamedLibraryObject<QByteArray>(name, referenceID) { }
static const __uint32 calculateHashValue(const __standardChar* name, __uint32 referenceID);
~IIMObject();
public overrides:
virtual const __standardChar* name() const override;
virtual const __uint32 calculateHashValue() override;
virtual void setName(const QByteArray& name) override;
};
| |
Note that the extra overrides above are overrides for the NamedObject class that the template in my previous post inherits from.
I get multiple instances of the following 3 errors, one for each of the classes that inherit from IIMObject. I get one for the main constructor, one for for the copy constructor; and oddly, one for the assignment operator for the template class instance.
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "__declspec(dllimport) protected: __thiscall IIMOEngine::NamedLibraryObject<class QByteArray>::NamedLibraryObject<class QByteArray>(class QByteArray const &,unsigned int)" (__imp_??0?$NamedLibraryObject@VQByteArray@@@IIMOEngine@@IAE@ABVQByteArray@@I@Z) SIMILEAPI D:\Developing\Projects\IIM\METAphor\SIMILEAPI\TestObject.obj 1
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: __thiscall IIMOEngine::NamedLibraryObject<class QByteArray>::NamedLibraryObject<class QByteArray>(class IIMOEngine::NamedLibraryObject<class QByteArray> const &)" (__imp_??0?$NamedLibraryObject@VQByteArray@@@IIMOEngine@@QAE@ABV01@@Z) SIMILEAPI D:\Developing\Projects\IIM\METAphor\SIMILEAPI\TestObject.obj 1
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: class IIMOEngine::NamedLibraryObject<class QByteArray> & __thiscall IIMOEngine::NamedLibraryObject<class QByteArray>::operator=(class IIMOEngine::NamedLibraryObject<class QByteArray> const &)" (__imp_??4?$NamedLibraryObject@VQByteArray@@@IIMOEngine@@QAEAAV01@ABV01@@Z) SIMILEAPI D:\Developing\Projects\IIM\METAphor\SIMILEAPI\TestObject.obj 1