[Qt-interest] Exporting function

André Hänsel andre at webkr.de
Thu Mar 4 21:18:27 CET 2010


Hi list,

what is the correct way to export a function using Qt and MSVC?

With 

extern "C" HRESULT Q_DECL_EXPORT __stdcall DllGetClassObject(REFCLSID
objGuid, REFIID factoryGuid, LPVOID *factoryHandle)

I get an "Redefinition; different linkage" error.

Regards,
André





More information about the Qt-interest-old mailing list