Re: gtkmm Hello World compile problem



please show below shell command output.
 
nm /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libgtkmm- 2.4.so | grep gtk_enumerate_printers
 
if you not see any text, maybe you have to check version.
 
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



--
Minsu Kim

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