c1xx fatal error C1083 Cannot open source file src random cpp No such file or directory.txt


c1xx fatal error C1083 Cannot open source file src random cpp No such file or directory.txt

在VS2008  VC++項目中,新建了一個cpp文件,然后在物理硬盤上手動刪除了,就出現如下錯誤。

1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>Compiling...
1>random.cpp
1>c1xx : fatal error C1083: Cannot open source file: '.\src\random.cpp': No such file or directory

 

 

解決方法是:到項目文件test.vcproj 中找到下面一段代碼,把已經刪除的文件路徑都給刪掉。即可。如下面紅色部分

 

寫道
<Filter 
Name="Source Files" 
Filter="cpp;cxx;c;def" 
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" 

<File 
RelativePath=".\src\main.cpp" 

</File> 
<File 
RelativePath=".\src\random.cpp" 

</File> 
<File 
RelativePath=".\src\qt\random.cpp" 

</File> 
</Filter>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM