Charl,

It sounds like your executable is trying to link against the wrong
version of the library. Did you use something like jhbuild to build
the new versions? If so, you can use

$ jhbuild shell

To start a shell that has all the proper environment variables set for
using the newwer version of the libraries, otherwise you'll need to
set these variables by hand.

Paul

On 5/7/07, Charl - <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I am having some trouble with cairo_create_context(). I am trying to
> compile a demo program from the gtkmm tutorial at:
> http://www.gtkmm.org/docs/gtkmm-2.4/examples/book/drawingarea/simple/
> I have installed the latest version of gtkmm: 2.10.10, because I know
> that this function has not been around for very long.
>
> Compiling using:
> g++ main.cc myarea.cc `pkg-config gtkmm-2.4 --libs --cflags`
> `pkg-config cairo --libs --cflags`
> goes well, but when I try to run the program, I get the error:
> ./a.out: symbol lookup error: ./a.out: undefined symbol:
> _ZN3Gdk8Drawable20create_cairo_contextEv
>
> Using ldd, I verified that the OS can find the cairo and libgtkmm
> libraries. What am I doing wrong? I have compiled all of the gtk
> dependencies from source, because the Debian packages are quite
> outdated.
>
> Thanks in advance,
> Charles
>
> PS. Sorry if this is a repost, I had some trouble posting.
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to