VS2010 build error with PuTTY source

I am downloading putty source code from a website.

and open the putty.dsw file.

VS2010 automatically converts project files.

eventually. just create a putty.

but I received 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 do not use precompiled headers.

i googled. so i found putty build from cygwin.

but just wondering how to build putty in vs2010.

+6
source share
1 answer

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

 #define SECURITY_WIN32 

to putty.h file. Do not add / define SECURITY_KERNEL , which caused additional errors.

+5
source

Source: https://habr.com/ru/post/903889/


All Articles