error C2039: “SetDefaultDllDirectories”:is not a member of global namespace

前端 未结 7 1589
無奈伤痛
無奈伤痛 2021-01-11 16:56

xxx\\vc\\atlmfc\\include\\atlcore.h(638): error C2039: “SetDefaultDllDirectories”: is not a member of \"global namespace\"

#ifndef _USING_V110_SDK71_
    //          


        
7条回答
  •  一个人的身影
    2021-01-11 17:19

    I also met this issue on VS 2012.

    This is caused because you are using the Windows SDK 7.1 which lacks of SetDefaultDllDirectories function call in VS 2012 (VC11). You may notice there is #ifndef _USING_V110_SDK71_ guarded flag to avoid using undefined SetDefaultDllDirectories.

    Just define _USING_V110_SDK71_ in your project to let SDK knows you are in this toolset or upgrade to higher version of SDK.

提交回复
热议问题