Re: gtkmm Hello World compile problem



I didn't see the option in the repositories to get it so I compiled both from source.  Are there certain versions of the GTK+ that won't match with gtkmm?  I just grabbed the latest versions of all the files.

On 12/30/06, John Spray <jcspray icculus org> wrote:
On Fri, 2006-12-29 at 23:24 -0400, Zachary Berry wrote:
> Since that worked I went ahead and got gtkmm (I'm running ubuntu so I
> used apt-get install libgtkmm-2.4-dev).  That seemed to go ok, so I
> typed up a hello world example described here:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch03.html).
> This is what I get back when I try to build it:
>
> blah$ g++ HelloWorld.cpp `pkg-config gtkmm-2.4 --cflags --libs`
> /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libgtkmm-2.4.so :
> undefined reference to `gtk_enumerate_printers'

Did you install GTK+ from the ubuntu repositories as well as gtkmm?
Sounds like there could be some kind of version mismatch which might be
the case if you'd installed one or other from some other source.

John

_______________________________________________
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]