DLL question
-
I am creating a dll (non-MFC). I am getting linker errors from the .exe that is trying to link with it. The linker is complaining about the static class variables, unresolved external symbol. How am I to "decorate" them? I've tried using __declspec(dllexport) but haven't had much luck. Thanks
-
I am creating a dll (non-MFC). I am getting linker errors from the .exe that is trying to link with it. The linker is complaining about the static class variables, unresolved external symbol. How am I to "decorate" them? I've tried using __declspec(dllexport) but haven't had much luck. Thanks
Well, I finally got it figured out, in case anybody is curious. The compiler directive should be dllexport when compiling the dll, and dllimport when compiling the exe. #ifdef _DLL_ #define DLL_GLOBAL __declspec(dllexport) #else #define DLL_GLOBAL __declspec(dllimport) #endif