Problems compiling an example



hi im trying to compile this program :

#include <gtkmm.h>

int main(int argc, char *argv[])
{
  Gtk::Main kit(argc,argv);
  Gtk::Window window;
  Gtk::Main::run(window);
return 0;
}

i try with g++ nuevo.cc -o nuevo 'pkg-config gtkmm-2.0
--cflags --libs'. But i recieve these errors :

g++: pkg-config gtkmm-2.0 --cflags --libs: No such
file or directory
nuevo.cc:1:19: gtkmm.h: No such file or directory
nuevo.cc: In function `int main(int, char**)':
nuevo.cc:5: error: `Gtk' undeclared (first use this
function)
nuevo.cc:5: error: (Each undeclared identifier is
reported only once for each
   function it appears in.)
nuevo.cc:5: error: parse error before `::' token

if i write pkg-config gtkmm-2.0 --cflags --libs
i get the flags and libs 

What can i do

thanks


		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]