No functions get exported into DLL despite proper dllExport - Visual Studio
问题 I have a base class ( QIndicator ) and I want to implement derived classes in DLLs. The DLL project in Visual Studio 2012 for a sample derived class has the following code: header file with base class #ifndef _DLL_COMMON_INDICATOR_ #define _DLL_COMMON_INDICATOR_ // define the DLL storage specifier macro #if defined DLL_EXPORT #define DECLDIR __declspec(dllexport) #else #define DECLDIR __declspec(dllimport) #endif class QIndicator { private: int x; int y; }; extern "C" { // declare the factory