`
qimo601
  • 浏览: 3439269 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

fatal error C1083: Cannot open source file

阅读更多

在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>

 

分享到:
评论

相关推荐

    fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory。

    fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory. stdint.h是c99标准的头文件,vc不支持,所以肯定会提示“No such file or directory”的。使用方法:下载压缩包,解压得到两个.h...

    STM32F10X 头文件

    MDK升级后,出现大量的 ..\SYSTEM\sys\sys.h(3): error: #5: cannot open source input file "stm32f10x_lib.h": No such file or directory 包含这个文件夹就可以解决该问题

    64位linux 编译c提示gnu/stubs-32.h:No such file or directory的解决方法

    C语言编译器关于gnu/stubs-32.h文件的解决方法 在64位Linux系统下编译C语言程序时,可能会出现gnu/stubs-32.h文件不存在的错误,主要是因为缺少32位兼容包的原因。今天,我们就来探讨解决这个问题的方法。 首先,...

    C++常见错误汇总

    fatal error C1083: Cannot open include file: 'R…….h': No such file or directory 这个错误是不能打开包含文件“R…….h”:没有这样的文件或目录。解决方法是检查文件路径是否正确,是否存在该文件。 LINK :...

    WDM驱动程序[定义].pdf

    在编译`vdw_wdm.lib`时可能会遇到以下错误:“fatal error LNK1181: cannot open input file "......\DriverStudio\DriverWorks\lib\I386\checked\vdw_wdm.lib”。 解决方案:确保已经正确编译了`DriverStudio\...

    使用visualc++6.0出现LINKfatalerrorLNK1104cannotopenfile的解决方案.pdf

    `LINK : fatal error LNK1104: cannot open file "Debug/Text1.exe"` 这个错误信息表示链接器无法找到指定的Debug目录下的`Text1.exe`文件。这可能是由于编译设置中指定的输出路径不正确,或者该目录下不存在相应的...

    windows下编译sqlite.doc

    - 在编译过程中可能会遇到错误:`e:\zieckey\sqlite\sqlite3\sqlite3ext.h(22) : fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory`。 - 原因是源码中以`#include &lt;sqlite3.h&gt;...

    openssl编译方法

    2. **无法打开`windows.h`头文件**:在编译过程中可能会遇到`fatal error C1083: Cannot open include file: 'windows.h'`错误,这是因为编译器无法找到必要的头文件。请确保已经通过`vcvars32.bat`脚本初始化了编译...

    Can't create TCP/IP socket(24).原因及解决办法

    3. "ERROR - Unable to connect to foreign data source- Can't create TCP-IP socket (24)_冰刀(skate)-CSDN博客.url":这可能是一个具体的案例,描述了在尝试连接外部数据源时遇到的TCP/IP套接字创建问题。...

    greenplum-db-6.2.1-rhel7-x86_64.rpm

    Important: Pivotal Support does not provide support for open source versions of Greenplum Database. Only Pivotal Greenplum Database is supported by Pivotal Support. Release 6.2.1 Release Date: 2019-...

    opencv2.4.4与VS2010配置

    1. **错误提示**:“LINK : fatal error LNK1104: cannot open file 'XXX.lib'”。 - 这个错误通常是因为链接器无法找到指定的库文件。 - 解决方法:检查是否正确添加了库文件目录,并且确保库文件名正确无误。 ...

    linux全志R16的linux系统编译的资料_20170502_1655.7z

    rm /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/build/buildroot-config/zconf.tab.c make[1]:正在离开目录 `/home/wwt/linux_r16/lichee/buildroot/package/config' # # configuration ...

    php.ini-development

    Windows directory (C:\windows or C:\winnt) ; See the PHP docs for more specific information. ; http://php.net/configuration.file ; The syntax of the file is extremely simple. Whitespace and lines ; ...

    汇编语言常见错误信息中文注解

    - `cannot open file`:无法打开文件,可能是因为文件不存在或者没有权限访问。 - `I/O error closing file`:关闭文件时出现I/O错误,可能是磁盘故障或文件被其他进程占用。 - `I/O error writing file`:写文件...

    Senfore_DragDrop_v4.1

    [C++ Error] DropSource.hpp(135): E2076 Overloadable operator expected I have not been able to reproduce these errors, but I believe the following work around will fix the problem: In the project ...

    汇编错误提示大全

    - **cannot open file**:无法打开指定的文件,可能是由于文件不存在或权限问题导致。 - **I/O error closing file**:在关闭文件时发生输入输出错误,这可能是由于磁盘空间不足或其他硬件问题引起。 - **I/O ...

Global site tag (gtag.js) - Google Analytics