我正在嘗試使用opencv運行用於人臉檢測的程序。我已經正確地包括在性能,但仍然在程序給錯誤的OpenCV庫的路徑,未能生成可執行文件並跳過調試過程中的頭文件,並給這些消息:Visual Studio在調試代碼時跳過頭文件
1> Add directive to 'stdafx.h' or rebuild precompiled header
1>.\avi2.cpp(241) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Build log was saved at "file://c:\Users\Abdullah\Documents\Visual Studio 2008\Projects\avi2\avi2\Release\BuildLog.htm"
1>avi2 - 1 error(s), 10 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
你包括在「stdafx.h中」頭「avi2.cpp」?你是否重新編譯預編譯頭文件(「stdafx.cpp」)? –