CodeLite No executable specified, use the "target exec" error

Today is my first day using CodeLite ( http://codelite.org/ ), and I keep getting random errors. I managed to fix most of them, but did not find how to fix it: The executable file is not specified, use "target exec" It is displayed when I click the "Start" or "Continue the debugger" button. The only solution I found was the following: http://www.gamedev.net/topic/605071-codelite-cpp-variadic-templates-error/ , but this did not fix the problem. I want to use a program to run and create 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, enter the project name and path, click OK. Now you can replace \ change the contents of main.cpp by default (it will be shown on the left) with your code.

+1
source share
1 answer

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

This is not possible because GDB cannot debug code compiled in VC ++. Codelite cannot use the VC ++ debugger. Your options are to use the GNU g ++ compiler or switch to Visual Studio. The express edition is free and should be sufficient for all basic development requirements.

+1
source

All Articles