Hi All,
I am a novice to QT Framework, although worked on C++ for a long time.
I am trying to use QT Framework for creating a Dynamic Link Library in QT using VS 2005.
I could create and export function from the library which take primitive types like "int" and could call these functions from QT Windows Application.
But , I need to be able to pass and return QT objects like QString to and from functions exported from the DLL on Windows.
When I try to pass QString and return QString it gives me the following
Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QString::~QString(void)" (__imp_??1QString@@QAE@XZ) referenced in function _ShowMessage ssaqtlib.obj
Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QString::QString(class QString const &)" (__imp_??0QString@@QAE@ABV0@@Z) referenced in function _ShowMessage ssaqtlib.obj
Error 5 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QString::QString(void)" (__imp_??0QString@@QAE@XZ) referenced in function _ShowMessage ssaqtlib.obj
Exported function is as under
extern "C" SSAQTLIB_EXPORT QString ShowMessage();
Can you please help me on this ?
Thanking in advance.
SSA
Bookmarks