链接警告:warning LNK4070 :/OUT...
2010-07-29 18:21
465 查看
dllD.exp : warning LNK4070: /OUT:dll.dll directive in .EXP differs from output filename "Debug/dllD.dll"; ignoring directive
我在DLL项目中遇到了,因为要对Debug版和Release版分别指定不同的输出文件名。对Debug版,我指定输出文件为dllD.dll,对Release版指定为dllR.dll。
解决方法有两个:(1)删掉自动生成的dll.DEF文件,在代码中使用_declspec(dllexport)导出函数;(2)删掉dll.DEF文件中LIBRARY字段后面双引号及其内部的库名即可,也可以将其改掉。如改为:
; dll.def : Declares the module parameters for the DLL.
LIBRARY "dllD"
DESCRIPTION 'dll Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
我在DLL项目中遇到了,因为要对Debug版和Release版分别指定不同的输出文件名。对Debug版,我指定输出文件为dllD.dll,对Release版指定为dllR.dll。
解决方法有两个:(1)删掉自动生成的dll.DEF文件,在代码中使用_declspec(dllexport)导出函数;(2)删掉dll.DEF文件中LIBRARY字段后面双引号及其内部的库名即可,也可以将其改掉。如改为:
; dll.def : Declares the module parameters for the DLL.
LIBRARY "dllD"
DESCRIPTION 'dll Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
相关文章推荐
- 链接警告:warning LNK4070 :/OUT...
- 链接警告:warning LNK4070 :/OUT...
- 关于链接警告LNK4070
- 解决 Debug编译时,警告:warning LNK4099: 未找到 PDB“vc90.pdb”
- b.exp : warning LNK4070: .EXP 中的 /OUT:a.dll 指令与输出文件名“b.dll"不同;忽略指令
- 连接程序时警告误:warning LNK4089
- 链接警告:warning LNK4070: /OUT:dll.dll directive in .EXP
- 链接警告 LNK4098
- Hive警告的解决办法 WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated
- 解决warning: directory not found for option:xxxxxx的警告
- 解决新版Emacs的警告:Warning (initialization): Your load-path...
- 使用apt导入时报警告:Warning:Using incompatible plugins for the annotation processing: android-apt. This may
- 谷歌发布新的链接规则:警告不要群发文章
- SourceTree 警告:warning: templates not found 解决
- 编译警告 warning: extra tokens at end of #undef 解决
- ssh 远程链接时出现错误提示:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
- ACE应用程序链接错误 error LNK2019 的解决办法
- Hudson/Jenkins -- 消除svn警告: "clock of the subversion server appears to be out of sync"
- 使用STL时的一个链接错误(error LNK2005:std::_Lockit::_Lockit(int)重定义)
- make only output error/warning message( 编译时,只输出错误信息和警告信息)