> 啊!不好意思,又來發問了!
> 我有一個class 叫counter,在寫的時候,建了一個目錄counter
> 放著counter.h counter.cpp counter.rc resource.h等和counter
> 有關的檔案.compile 正常.但是我將它移植到另一個.mak的專案時
> (copy counter.cpp counter.h 並把counter的bimap copy 到此專
> 案的resource.h中),但是每次compile時,都出現:
> fatal error C1010: unexpected end of file while looking for
>precompiled header directive
> 並且停在counter.cpp的最後一行,到底為什麼呢?
>
這是 precompiled haeder 的設定問題, 可以在 counter.cpp 的前面加
一行 #include "stdafx.h" 或者是 Compiler options 內的 Precompiled
Headers 裡面選擇 Automatic use of precompiled headers 這一項
四眼的王蟲
--
生命是在黑暗中閃爍的光
你沒有把該include進來的檔含入,故會產生如此訊息.
可能你有對話框的檔的headler file沒include ,自己把它加上吧!!
--
※ 來源:台灣工技學院BBS(bbs.et.ntit.edu.tw) ◆來自: 203.73.1.162