Netbeans c++ 编译器搜索已删除的文件
Netbeans c++ compiler searches for deleted file
我正在开发 Ubuntu 16.04 和 Netbeans 8.0.2
我删除了一个源文件和相应的头文件,因为我不再使用它了。 当我想编译我的代码(干净+构建)时,我收到以下错误:
make[2]: *** no rule to make target source_files/SolveODEwithAST.cpp“,
benötigt von „build/Debug/GNU-Linux-x86/source_files/SolveODEwithAST.o“, zu erstellen. Schluss.
-> 我的制作文件仍在查找已删除的文件。 我开始在makefile中搜索编译此已删除文件的命令:
我发现了以下内容: 在 Makefile-release:
${OBJECTDIR}/source_files/SolveODEwithAST.o: source_files/SolveODEwithAST.cpp
${MKDIR} -p ${OBJECTDIR}/source_files
${RM} "$@.d"
$(COMPILE.cc) -O2 -MMD -MP -MF "$@.d" -o ${OBJECTDIR}/source_files/SolveODEwithAST.o source_files/SolveODEwithAST.cpp
它是在对象文件变量中定义的。
我删除了这些代码行,但这些行在构建代码后重新出现。
那么如何更改我的生成文件以使我的代码再次工作呢?
对于项目/nbproject 目录中的所有文件,我搜索了已删除的文件名。
$ls
configurations.xml Makefile-Debug.mk Makefile-impl.mk Makefile-Release.mk Makefile-variables.mk Package-Debug.bash Package-Release.bash private project.xml
删除.xml文件中的相应行非常重要。 当我只是删除 Makefile 中的相应行时,这些行会重新出现。
相关文章:
- 如何在输入新内容 c++ 之前删除文件中的所有内容
- 文件模式标志"ios::app"是否用于删除文件(如果文件已存在)?
- 查找并删除文件 C++ 中的整行
- 如何删除文件中的数字,通过 c++ fstream 的
- 以编程方式防止重命名或删除文件,但仍使其可写
- C++ 如何使用_rmdir删除文件?
- 关于从驱动器中删除文件的问题
- Linux 从永远在线的应用程序中创建和删除文件
- 用户使用C++中的删除功能删除文件
- 如何在C++中删除文件中的一部分文本
- 我可以删除 *.o文件(代码:: blocks)
- 为什么std ::删除文件始终返回-1
- C++ 使用数字删除文件 io 行
- 如何使用 c++ 删除文件夹及其内容
- 如何在 C++ 中的文件处理中删除文件
- 用数字删除文件
- Cygwin:打开句柄时删除文件
- 接收文件并删除文件中的重复项
- 删除文件 C++ 中字符串中最后一个出现的字符
- 在循环内删除文件时使提升recursive_directory_iterator无效