_In_ 及 iosfwd 錯誤

'_In_' : undeclared identifier


出現在 VS2008 裡的 include file 的話,則可能原因是與 DDK header 混到的關係


可以嘗試以下解法


在 include path 中加入


D:\WinDDK\7600.16385.1\inc\api
D:\WinDDK\7600.16385.1\inc\crt
D:\WinDDK\7600.16385.1\inc\ddk


這幾個項目


如果有再出現 iosfwd error C2146: syntax error : missing ';' before identifier 'fpos_t' 這個問題
這依舊是 VS2008 與 WDK 衝突的關係


解法的話,可以嘗試將 include path 中 WDK 相關項目移除
至於 cpp 檔有用到 WDK include file 的話,可以嘗試 include 時指定路徑,如:


#include <D:\\WinDDK\\7600.16385.1\\inc\\api\\Ntddvdeo.h>


留言

熱門文章