compiling, building and executing a C++ program in Anjuta
I'm new to Linux and want to learn programming c++ on it.
When i write a simple 'Hello world' program in Anjuta,
#include <iostream>
using namespace std;
int main () {
cout << "Hello world";
return 0;
}
it gives me the following errors during compiling:
gsh: gtkmm-config: command not found
sh: gnome-config: command not found
sh: wx-config: command not found
Completed... successful
and when I build the program it gives the following errors:
g++: `gtkmm-config: No such directory
g++: `gnome-config: No such directory
g++: `gnomemm`: No such directory
g++: `wx-config: No such directory
g++: `gtkmm-config: No such directory
g++: `gnome-config: No such directory
g++: `gnomemm`: No such directory
g++: `wx-config: No such directory
cclplus: error: unrecognized command line option "-fcflags`"
cclplus: error: unrecognized command line option "-fcflags"
cclplus: error: unrecognized command line option "-fcxxflags`"
cclplus: error: unrecognized command line option "-flibs`"
cclplus: error: unrecognized command line option "-flibs"
cclplus: error: unrecognized command line option "-flibss`"
Completed... unsuccessful
and so I think this is the reason why when I try to execute the program a warning message prompt says:
"No executable for this file"
What do i need to do to have a c++ environment that compiles and executes programs?
thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Anjuta Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Rafael Sachetto
- Solved:
- Last query:
- Last reply: