I got an error saying
undefined reference to 'virtual thunk to myClass::myFunction'
For a library i'm trying to create.
Here's my code :
myClass.cpp :
#include "myClass.h"
void myClass::myFunction() {}
myClass::~myClass() {}
.
myClass.h :
{inclusion guards}
#include "myClass_global.h"
class MY_CLASSSHARED_EXPORT myClass {
public:
myClass();
virtual void myFunction();
virtual ~myClass();
};
.
myClass_global.h
{inclusion guards}
#include <QtCore/qglobal.h>
# if degined(MY_CLASS_LIBRARY)
# define MY_CLASSSHARED_EXPORT Q_DECL_EXPORT
# else
# define MY_CLASS Q_DECL_IMPORT
# endif
I'm not really used to making libraries. I'm under QtCreator.
I've found that a "virtual thunk" might be a "function pointer" to something (a destructor ?) that can't be found ...
However, I haven't found anything very clear on the internet ...