Error "No executable specified, use `target exec'."

CodeLite installation/troubleshooting forum
marius
CodeLite Curious
Posts: 2
Joined: Thu Oct 28, 2010 11:34 am
Genuine User: Yes
IDE Question: C++
Contact:

Error "No executable specified, use `target exec'."

Post by marius »

Hi,
I want to use code lite on my notebook, but it doesn't work.
When I build the "hello world"-project and go on "build and run project". The black windows opens, but there is no text in.
My project:

#include<iostream>
using namespace std;

int main()
{
cout<< "hello world\n";

return 0;
}

When I go on "Start debugger". It comes an error:
Using gdbinit file: C:\Users\Marius\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Program Files\CodeLite\work
Launching gdb from : ./Debug
Starting debugger : C:\MinGW-4.4.1\bin\gdb.exe --command="C:\Users\Marius\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi "C:\Program Files\CodeLite\work\main.cpp"
DEBUG>>set new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print pretty on
DEBUG>>set print elements 200
Debug session started successfully!
DEBUG>>00000001-exec-run
DEBUG>>~"GNU gdb (GDB) 7.1\n"
GNU gdb (GDB) 7.1
DEBUG>>~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
Copyright (C) 2010 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
DEBUG>>~"This is free software: you are free to change and redistribute it.\n"
This is free software: you are free to change and redistribute it.
DEBUG>>~"There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\n"
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
DEBUG>>~"and \"show warranty\" for details.\n"
and "show warranty" for details.
DEBUG>>~"This GDB was configured as \"mingw32\".\n"
This GDB was configured as "mingw32".
DEBUG>>~"For bug reporting instructions, please see:\n"
For bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>...\n"
<http://www.gnu.org/software/gdb/bugs/>...
DEBUG>>&"\"C:\\Program Files\\CodeLite\\work\\main.cpp\": not in executable format: File format not recognized\n"
DEBUG>>&"set new-console on\n"
DEBUG>>^done
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print pretty on\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>00000001^error,msg="No executable specified, use `target exec'."
No executable specified, use `target exec'.


In the bottom right corner: "Env:'Devault', Builder: 'GNU makefile for g++/gcc"

I have changed the build and debugger settings and added the environment variable.
Also I set the path to the executable in the project settings.
I'm using Windows 7 (64 bit).
I have installed "codelite-2.7.0.4375-mingw4.4.1"

Thanks,

Marius
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error "No executable specified, use `target exec'."

Post by eranif »

DEBUG>>&"\"C:\\Program Files\\CodeLite\\work\\main.cpp\": not in executable format: File format not recognized\n"
What is the executable that you are trying to run?
looks like you are trying to execute the source file??

Please check your project settings
Eran
Make sure you have read the HOW TO POST thread
marius
CodeLite Curious
Posts: 2
Joined: Thu Oct 28, 2010 11:34 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error "No executable specified, use `target exec'."

Post by marius »

Hi,

when I create a new workspace with a new project and choose as workspace path C:\Program Files\CodeLite.
The project doesn't work, the debug says "No such file or directory.\n", so I looked in the file Program Files\CodeLite.
There is no workspace, that I have created. I think that is the problem, so the debug can't find the project.

I create again a new workspace with a new project, but choose as workspace path my desktop.
Now the program works.

I have one question left, how can I delete the old workspaces and projects?

Thanks,

marius
Post Reply