Lnk4070 解决

在生成Dll文件的时候,出现过警告Lnk4070

原因在于不使用默认的名字。比如说正常的默认输出为“Project.Dll”,而现在非要改称“ProjectD.dll”来表示debug版本

从而导致上述警告错误

解决方案:
把使用的Def中的LIBRARY字段后面双引号及其内部的库名即可

; Project.def : Declares the module parameters for the DLL.

LIBRARY      "ProjectD.dll"
DESCRIPTION 'dll Windows Dynamic Link Library'

EXPORTS
    ; Explicit exports can go here


posted @ 2009-07-18 10:09  西就东城  阅读(858)  评论(0编辑  收藏  举报