CodeLite No executable specified, use 'target exec' error

Yordan Sirakov picture Yordan Sirakov · Aug 19, 2013 · Viewed 10.9k times · Source

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.

Answer

jnovacho picture jnovacho · Aug 19, 2013

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.