关于编写DLL时,DEF文件(模板文件)的输出(EXPORTS)函数出现链接错误:
其中.def文件如下:
LIBRARY "usb_fm.dll"
EXPORTS
Initialize @1 private
链接错误信息如下:
Linking...
fm.def : warning LNK4022: cannot find unique match for symbol 'Initialize'
fm.def : warning LNK4002: "void __cdecl Initialize(struct HWND__ *)" (?Initialize@@YAXPAUHWND__@@@Z) defined in ./debug/main_operation.obj
fm.def : warning LNK4002: "public: virtual long __stdcall CAggDirectDraw::Initialize(struct _GUID *)" (?Initialize@CAggDirectDraw@@UAGJPAU_GUID@@@Z) defined in D:/InstallSoftware/Microsoft SDKs/Windows/