Re: Problems compiling an example
- From: Jae Jang <jae jang gmail com>
- To: Mattos <ozharu yahoo com>
- Cc: gtkmm-list gnome org
- Subject: Re: Problems compiling an example
- Date: Wed, 12 Jan 2005 13:45:10 -0500
use backticks (`) not apostrophes (')
g++ nuevo.cc -o nuevo `pkg-config gtkmm-2.0 --cflags --libs`
On Wed, 12 Jan 2005 10:06:31 -0800 (PST), Mattos <ozharu yahoo com> wrote:
> 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
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]