【发布时间】:2012-01-21 17:50:19
【问题描述】:
我正在从网站下载腻子源代码。
然后打开 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
预处理器定义
WIN32
_DEBUG
_WINDOWS
并且不使用预编译的标头。
我用谷歌搜索。所以我从 cygwin 中找到了 putty build。
只是想知道如何在 vs2010 上构建 putty。
【问题讨论】:
-
您是否尝试定义 SECURITY_WIN32 或 SECURITY_KERNEL ?
-
添加“putty.h”
#define SECURITY_WIN32 #define SECURITY_KERNEL并构建。但。我收到了更多错误消息;-(Error 23 error C2146: syntax error : missing ')' before identifier 'ServiceClass' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\sspi.h 1854 1 putty Error 24 error C2061: syntax error : identifier我不知道为什么会这样。
标签: visual-studio-2010 visual-c++ build putty