Error "No executable specified, use `target exec'."
Posted: Thu Oct 28, 2010 12:22 pm
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
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