close

 

complier 時常會出現 fatal error C1083: Cannot open include file

問題出在系統找不到include file,通常都是系統預設路徑中無此檔案

我電腦裡的visual 2008預設路徑如下:

C:\Program Files\Microsoft Visual Studio 9.0\VC\include

 

 

解決方法:

把檔案copy進去或copy到程式執行的目錄中即可

 

 

例如

error(缺少visa.h):

 

 

 

sol(h檔copy到程式目錄):

 

 

 

大功告成

 

 

 

 

 

 

 

註:

#include後面使用 <> 時,表示讓complier在系統文件夾中找對應header檔
#include後面使用 "" 時,表示讓complier先在當前程式目錄下找對應header檔,再找系統文件夾中

arrow
arrow
    全站熱搜

    天才R 發表在 痞客邦 留言(0) 人氣()