Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/124.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Codelite问题——未指定可执行文件,请使用';目标执行官_C++_Debugging_Codelite - Fatal编程技术网

C++ Codelite问题——未指定可执行文件,请使用';目标执行官

C++ Codelite问题——未指定可执行文件,请使用';目标执行官,c++,debugging,codelite,C++,Debugging,Codelite,我刚刚在windows 8.1中安装了codelite。它显示错误 Debugger exited with the following error string: "No executable specified,use 'target exec'" 我搜索并找到了这个,我做了与上面提到的相同的操作,但没有任何东西真正对我有效。我创建了一个新项目,并选择简单可执行文件(g++)和GNU调试器作为默认调试器。有人能帮我吗?它还显示“程序退出,返回代码:4199040”。您似乎

我刚刚在windows 8.1中安装了codelite。它显示错误

  Debugger exited with the following error string:
   "No executable 
   specified,use 'target exec'"

我搜索并找到了这个,我做了与上面提到的相同的操作,但没有任何东西真正对我有效。我创建了一个新项目,并选择简单可执行文件(g++)和GNU调试器作为默认调试器。有人能帮我吗?它还显示“程序退出,返回代码:4199040”。

您似乎没有提供可执行文件来运行/调试:

并填写正确的信息

Executable to Run / Debug
Executable to Run / Debug
在命令提示中:

  • GDB(程序类型:示例Python或C或C++等) 如果我正在运行python程序,那么命令将是gdb-python
  • 然后(gdb)运行程序\u name.py

  • Jarod42提供了一个“足够接近”的答案。在Linux上,步骤似乎是:

    Workspace -> Open Active Project Settings... -> General
    
    并填写正确的信息

    Executable to Run / Debug
    
    Executable to Run / Debug
    

    你已经建立了你的项目?构建时没有错误?这是一个你正在构建的可执行程序吗?没有,先生,在调试我的代码时。我尝试了快速调试和默认调试进程。成功地构建了我的项目,没有错误。只是在C++中尝试了简单的Hello World程序。它还显示了“返回代码的程序:4199040”。即使在
    main
    函数中没有return语句,编译器也应该自动添加
    return0在程序末尾,因此返回代码应该为零。我不知道这是否与您当前的问题有关,但这仍然是一个问题;我想这和我的问题没有任何关系