我正在尝试使用code :: blocks调试器。我按照this基本教程了解了如何做到这一点。我还看了两个关于你管的视频。我实际上是在一个更大的文件上尝试它,它有它的声明&在单独的文件中实现(一个是头文件tree.h,一个是它的实现tree.cpp&最后一个有implementation_tree.cpp主函数检查头文件)但它没有工作所以我试了一个非常简单的程序。但现在调试器显示此错误
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: F:\Coding\test\test\
Adding source dir: F:\Coding\test\test\
Adding file: F:\Coding\test\test\bin\Debug\test.exe
Changing directory to: F:/Coding/test/test/.
Set variable: PATH=.;C:\Program Files\CodeBlocks\bin;C:\Program Files\CodeBlocks;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0
[debug]Command-line: F:\Coding\Data Structures\tree.h -nx -fullname -quiet -args F:/Coding/test/test/bin/Debug/test.exe
[debug]Working dir : F:\Coding\test\test
Starting debugger: F:\Coding\Data Structures\tree.h -nx -fullname -quiet -args F:/Coding/test/test/bin/Debug/test.exe
failed
此行中的内容 [debug]命令行:是我之前尝试调试的tree.h文件的地址。但现在我已经删除了所有的断点和Code :: Blocks& amp;中与该文件相关的所有内容甚至更改了该文件的位置,但它仍然在启动调试器中显示相同的地址。在删除了几次与之相关的所有内容后,我也重建了我的测试程序,但我仍然遇到同样的错误。我正在使用GDB。
如果这个问题听起来非常愚蠢,我很抱歉,因为我第一次尝试这个问题。无法通过任何教程或任何其他论坛或其他任何内容。我还看到了有关stackoverflow的其他相关问题,但它们都不适用于我。所以,请帮忙。感谢。
答案 0 :(得分:0)
设置 - >编译器 - >搜索目录..从那里删除所有路径。