c++ exporting and using dll function
问题 I can't quite figure out where there is a mistake. I am creating a DLL and then using it in a C++ console program (Windows 7, VS2008). But I get LNK2019 unresolved external symbol when trying to use the DLL functions. First the export: #ifndef __MyFuncWin32Header_h #define __MyFuncWin32Header_h #ifdef MyFuncLib_EXPORTS # define MyFuncLib_EXPORT __declspec(dllexport) # else # define MyFuncLib_EXPORT __declspec(dllimport) # endif #endif This is one header file I then use in: #ifndef __cfd