您的位置:首页 > 其它

error C2039: “SetDefaultDllDirectories”: 不是“`global namespace’”的成员

2018-02-27 15:16 1601 查看
使用2013编译程序的时候,当包含头文件的atlstr.h的时候,出现如下错误:

1>c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\atlcore.h(633): error C2039: “SetDefaultDllDirectories”: 不是“`global namespace’”的成员

1>c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\atlcore.h(633): error C2065: “SetDefaultDllDirectories”: 未声明的标识符

1>c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\atlcore.h(635): error C2065: “LOAD_LIBRARY_SEARCH_SYSTEM32”: 未声明的标识符

解决方法:

找到属性页的预处理定义,增加如下值:

_USING_V110_SDK71_

预处理定义为位置如下:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐