我正在更改我的代码,但编译的程序不受影响
I'm changing my code but the compiled program isn't being affected
我正在用c++做一个项目。我关闭了Codeblocks并重新打开它,现在当我编辑,保存和编译代码时,.exe根本没有改变。日志显示"正在检查是否存在:C:UsersAJCodesndbrdbinDebugsndbrd.exe"执行:"C:Program FilesCodeBlocks/cb_console_runner.exe" "C:UsersAJCodesndbrdbinDebugsndbrd.exe"
(in C:UsersAJCodesndbrd.
)"另外,我有两个可执行文件,main.exe
,位于main.cpp
所在的位置,sndbrd
在 bin/debug
文件夹中。
编译器使用obj executable/obj-files/pcp -header文件的时间戳来确定是否需要编译/链接。无论出于何种原因,如果您的可执行文件/obj-files时间戳> pcp -头文件,(即。Cpp-header是较新的)那么编译器不会认为编译/链接是必要的。
简单的解决方法是删除所有的obj/exe文件,然后重新编译。
相关文章:
- 如何从测试脚本中运行WAF编译C++程序?
- 如何使用命令提示符、记事本和 MinGW 使用主文件、头文件和实现文件编译C++程序?
- 在Yocto上本地构建和编译C / C++程序
- 我无法在代码块中编译c ++程序。它给了我错误
- 在 turbo c++ 中使用 TCC 从 cmd 编译C++程序
- 如何在Linux中编译C 程序以生成Windows可执行文件
- 在Python中编译C 程序时,请尝试捕获OS错误
- 在Windows命令提示符中使用G 编译C 程序
- 如何使用HDF5源代码编译c程序
- 如何在Mac终端中编译C ++程序
- 设置 VS 代码以编译C++程序
- 无法在 Ubuntu 上编译 c++ 程序
- 无法使用 libcurl 库编译 c++ 程序
- 编译C 程序,该程序将SFML与MINGW一起到端口,从Linux到Windows
- 编译C 程序时具有逻辑错误,该程序应将任意大的数字表示为字符串
- 如何在 Windows 命令提示符下使用 Dev C++ 编译器编译 c++ 程序
- 在cygwin中使用mingw编译器编译c ++程序时缺少dll。
- 无法在Windows上编写的Linux上编译C程序
- 架构的未定义符号x86_64惠姆使用G 编译C 程序
- 指定netbeans用来编译C++程序的完整编译命令