编译DLL时出错 - 错误LNK2005

时间:2012-07-03 09:04:49

标签: c++ visual-studio-2010 dll linker lnk2005

我想编译一个DLL,当我加入<afxdb.h>时我遇到了这个错误:

error LNK2005: DllMain already defined in xlFunctions.obj
error LNK1169: one or more multiply defined symbols found

我的DllMain中有一个xlfunctions.cpp函数,这是我的DLL的入口点。

Use of MFC property设置为Use MFC in a Shared DLL

如何解决此错误?

由于

0 个答案:

没有答案