VC8和VC8SP1的LIB庫相容編譯後發布到另一台無VC電腦上

來源:互聯網
上載者:User

C:/WINDOWS/WinSxS/Policies 下有些檔案是確保VC8各個版本DLL相容的

要想把VC8 SP1編譯(串連VC8的LIB)出來的EXE在安裝VC8(沒有SP1)的電腦上使用

除了把幾個DLL目錄考到工作目錄外,還要把C:/WINDOWS/WinSxS/Policies下的對應檔案考到對方的系統目錄下

 <?xml version='1.0' encoding='UTF-8' standalone='yes'?><br /><assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'><br /> <dependency><br /> <dependentAssembly><br /> <assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' /><br /> </dependentAssembly><br /> </dependency><br /> <dependency><br /> <dependentAssembly><br /> <assemblyIdentity type='win32' name='Microsoft.VC80.DebugMFC' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' /><br /> </dependentAssembly><br /> </dependency><br /> <dependency><br /> <dependentAssembly><br /> <assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' /><br /> </dependentAssembly><br /> </dependency><br /></assembly>

 

 

上面檔案表明,這個執行檔案需要兩個版本的VC8庫,但是對於安裝了SP1的來說,沒有VC8的庫,所以需要POLICIES制定SP1相容VC8的庫。

 

以上步驟解決這個問題:

我用SP1編譯一個EXE,其中串連一個VC8(無SP1)的LIB,現在要放到無SP1或者VC8的電腦上使用。

 

 

 

 

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.