putty 編譯問題

來源:互聯網
上載者:User

編譯putty等程式,遇到一個問題:

   

c:\program   files\microsoft   visual   studio\vc98\include\sspi.h(65)   :   fatal   error   C1189:   #error   :       You   must   define   one   of   SECURITY_WIN32,   SECURITY_WIN16,   SECURITY_KERNEL 
Error   executing   cl.exe. 

 

 

解決方案:

 

  我在winstuff. h 中加了紅色的那個語句,搞定

 

#ifndef PUTTY_WINSTUFF_H#define PUTTY_WINSTUFF_H#ifndef AUTO_WINSOCK#include <winsock2.h>#endif#include <windows.h>#include <stdio.h>       /* for FILENAME_MAX */#include "tree234.h"#include "winhelp.h" #define SECURITY_WIN32

 

 

Win7安vc2008編譯報LINK : fatal error LNK1000: Internal error during IncrBuildImage2010-09-17 22:21安裝了VS2008+sp1後出現連結錯誤: >Copyright (C) Microsoft Corporation. All rights reserved. 1>LINK : fatal error LNK1000: Internal error during IncrBuildImage 1> Version 9.00.21022.08 1> ExceptionCode = C0000005 1> ExceptionFlags = 00000000 1> ExceptionAddress = 0111FCF7 (010A0000) "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\link.exe" 1> NumberParameters = 00000002 1> ExceptionInformation[ 0] = 00000000 1> ExceptionInformation[ 1] = 00EBD670 1>CONTEXT: 1> Eax = 401CACDC Esp = 001BF294 1> Ebx = 40008160 Ebp = 001BF2BC 1> Ecx = 00EBD670 Esi = 401CAB58 1> Edx = 001BF2AC Edi = 010AD6C0 1> Eip = 0111FCF7 EFlags = 00010246 1> SegCs = 0000001B SegDs = 00000023 1> SegSs = 00000023 SegEs = 00000023 1> SegFs = 0000003B SegGs = 00000000 1> Dr0 = 00000000 Dr3 = 00000000 1> Dr1 = 00000000 Dr6 = 00000000 1> Dr2 = 00000000 Dr7 = 00000000 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== 一、下微軟的補丁:KB948127補丁來解決,http://code.msdn.microsoft.com/KB948127。貌似安裝了也不起作用 二、如果下載的補丁沒安裝成功或下載失敗,可以用下面的方法手工來改工程設定 項目(Project)->屬性(Property)->連結器(Linker)->常規(General) 下面的“啟用增量連結(Enable Incremental Linking)”,將“是(/INCREMENTAL)”改為“否(/INCREMENTAL:NO)”。不過這又引入了另外一個警 告:FormatCom.obj : warning LNK4075: 忽略“/EDITANDCONTINUE”(由於“/INCREMENTAL:NO”規範) 選擇項目,屬性(Property pages)->配置屬性(Configuration Properties) ->C/C++,修改“調試資訊格式(Debug Information Format)”為“程式資料庫(Program Database(/Zi))”即可。

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.