我最近安装了Windows Server 2003 R2以获取对ATL标头和库文件的访问权限。我在Visual C ++ 2008 Express中设置了include和library路径,用cl.exe编译ATL代码。当我在VC ++ 2008 Express中编译解决方案时。出现以下错误消息。
d:\programs\psdk windows sever 2003\include\atl\atlbase.h(513) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\programs\microsoft visual studio 9.0\vc\include\stdio.h(358) : see declaration of '_vsnprintf' d:\programs\psdk windows sever 2003\include\atl\atlbase.h(537) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\programs\microsoft visual studio 9.0\vc\include\stdio.h(358) : see declaration of '_vsnprintf' d:\programs\psdk windows sever 2003\include\atl\atlbase.h(561) : warning C4996: '_vsnwprintf': This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\programs\microsoft visual studio 9.0\vc\include\wchar.h(719) : see declaration of '_vsnwprintf' d:\programs\psdk windows sever 2003\include\atl\atlbase.h(584) : warning C4996: '_vsnwprintf': This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\programs\microsoft visual studio 9.0\vc\include\wchar.h(719) : see declaration of '_vsnwprintf' Compiling manifest to resources... Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 Copyright (C) Microsoft Corporation. All rights reserved. Linking... LINK : fatal error LNK1104: cannot open file 'atlthunk.lib'
任何帮助都值得......
答案 0 :(得分:-1)
1.find'atlthunk.lib'整个项目, 如果找到'#pragma comment(lib,“atlthunk.lib”)',并将其删除。
2。project setting link -> input->add-on dependency, remove 'atlthunk.lib'
。