CodeLite No executable specified, use 'target exec' error

蹲街弑〆低调 提交于 2019-12-13 00:25:41

问题


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.

Here is the solution:

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.


回答1:


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

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.




回答2:


In my case it was missing the make tool; I resolved installing the build-essential package with the command sudo apt install build-essential; I'm under +ubuntu.



来源:https://stackoverflow.com/questions/18309682/codelite-no-executable-specified-use-target-exec-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!