在PuTTY源上VS2010构建错误

pla*_*box 6 putty build visual-studio-2010 visual-c++

我从网站下载putty源代码.

并打开putty.dsw文件.

VS2010自动转换该项目文件.

最后.只建立腻子.

但我得到了这个消息.

Error   27  error C1189: #error :   You must define one of SECURITY_WIN32, SECURITY_KERNEL, or  c:\program files (x86)\microsoft sdks\windows\v7.0a\include\sspi.h  60  1   putty
Error   35  error C1189: #error :   You must define one of SECURITY_WIN32, SECURITY_KERNEL, or  c:\program files (x86)\microsoft sdks\windows\v7.0a\include\sspi.h  60  1   putty
Run Code Online (Sandbox Code Playgroud)

预处理器定义

WIN32
_DEBUG
_WINDOWS
Run Code Online (Sandbox Code Playgroud)

而不使用预编译头.

我用Google搜索 所以我从cygwin发现了putty build.

但只是想知道如何在vs2010上建立腻子.

MrG*_*MrG 5

正如马蒂亚斯上面所说,你需要添加一条像

#define SECURITY_WIN32
Run Code Online (Sandbox Code Playgroud)

到putty.h文件.不要添加/定义SECURITY_KERNEL导致其他错误的原因.