about makefile problem



I install gtkmm-1.4.1 and gtkmm-devel-1.4.1.
I make bellow makefile. But I got a problem.
It told me this.
`Gtk` undeclared.
parse error before `::`.
`kit` undeclared.
my test.cc contains Gtk::Main kit( argc ,argv );

I modify my makefile that gtk-config instead of gtkmm-config.
But the problem still exit.
Please help me. Thank a lots.
    cooper
>
>hi. I want to complie my project, but I can't.
>because my makefile has a little bug.
>I wrote:
>//makefile
>test: test.cc myframe.o
>    g++ -O3 `gtkmm-config --cflags` -o test test.cc myframe.o
>`gtkmm-config --libs`
>myframe.o: myframe.cc myframe.h
>    g++ -O3 -c myframe.cc
>and I use gtkmm-tool not Gtk1.0.2, but I can't pass Gtk::Window();
>I only pass Gtk_Window;
>how about modify this makefile?
>please help me. Thanks a lot.
>    cooper
>
>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>



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