2016-11-04 23 views
3

我想用Visual Studio 2013編譯gmock。 但是,當我編譯它時,它顯示了cannot open include file 'src\gtest-internal-inl.h:' no such file or directoryenter image description here無法打開包含文件'src gtest-internal-inl.h:'沒有這樣的文件或目錄

但是這個文件確實存在,我也已經在項目的屬性中包含它的路徑。 enter image description here

當我在這個文件中鍵入其路徑,它可以清楚地發現:

enter image description here

enter image description here

但VS2013劇照說無法找到它:

enter image description here

如何解決這個問題?

回答

3

我今天有同樣的問題:) 您可以將這個頭文件從googletest/src複製到googlemock/src目錄。 之後,問題就解決了。

+0

It works !!!非常感謝! – firstaccount

+1

僅供參考,https://github.com/google/googletest/issues/661 –

+0

@firstaccount我試過這個,但它仍然給我同樣的問題。 – user2148571

相關問題