Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 Build Error at PuTTY Source

i'm download putty source code from website.

and open putty.dsw file.

VS2010 auto convert that project files.

finally. just build only putty.

but i got this message.

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

Preprocessor Definitions

WIN32
_DEBUG
_WINDOWS

and Not Using Precompiled Headers.

i googled. so i found putty build from cygwin.

but just wondering about how to build putty at vs2010.

like image 943
plasticbox Avatar asked Dec 16 '11 05:12

plasticbox


1 Answers

as Matthias said above, you need to add a line like

#define SECURITY_WIN32

to the putty.h file. Don't add/define SECURITY_KERNEL that's what caused additional errors.

like image 123
MrG Avatar answered Oct 14 '22 22:10

MrG