CodeLite未指定可执行文件,使用"target exec"错误 [英] CodeLite No executable specified, use 'target exec' error

查看:315
本文介绍了CodeLite未指定可执行文件,使用"target exec"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天是我使用CodeLite的第一天( http://codelite.org/),而且我一直在随意错误.我已经设法修复了大多数问题,但是没有找到如何解决这一问题的方法: 未指定可执行文件,请使用目标执行程序" 当我按下开始"或继续"调试器按钮时,将显示该消息.我发现的唯一解决方案是以下解决方案: http://www .gamedev.net/topic/605071-codelite-cpp-variadic-templates-error/,但无法解决问题.我想使用该程序来运行并制作C ++代码,是否需要更改默认设置?谢谢.

Today is my first day of using CodeLite (http://codelite.org/) and I keep getting random errors. I've managed to fix most of them, but didn't found how to fix this one: No executable specified, use 'target exec' It is shown when I press the Start or Continue debugger button. The only solution I found was this one: http://www.gamedev.net/topic/605071-codelite-cpp-variadic-templates-error/ but it didn't fix the problem. I want to use the program to run and make C++ codes, do I need to change something in the default settings? Thanks.

这是解决方案:

从主菜单中选择工作区,然后选择新建项目.在左侧,选择控制台>简单可执行文件(g ++).在右侧填写项目名称和路径,然后单击确定".现在,您可以用代码替换\编辑默认的main.cpp内容(将显示在左侧).

From the Main menu select Workspace and then New project. On the left side select Console > Simple executable (g++). On the right side fill the project name and path an click OK. You can now replace\edit the default main.cpp (will show on the left) contents with your code.

推荐答案

如注释中所述,您正在使用VC ++编译器,并尝试使用GNU gdb调试器来调试该代码.

As mentioned in comments, you are using VC++ compiler and tries to use GNU gdb debugger to debug that code.

这是不可能的,因为GDB无法调试在VC ++中编译的代码. Codelite也不能使用VC ++调试器.您的选择是使用GNU g ++编译器或切换到Visual Studio. Express版本是免费的,并且可以满足所有基本开发要求.

That's not possible, because GDB cannot debug code compiled in VC++. Codelite cannot use VC++ debugger either. Your options are to use GNU g++ compiler or switch to Visual Studio. The Express edition is free and should suffice for all basic development requirements.

这篇关于CodeLite未指定可执行文件,使用"target exec"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆