Re: Trouble with create_cairo_context



Anybody ever figure out what caused this problem?  I can't get the
clock example to work:

~/src/gtk/clock$ g++ `pkg-config --cflags --libs gtkmm-2.4`
`pkg-config --cflags --libs cairomm-1.0` -g clock.cc main.cc
~/src/gtk/clock$ ./a.out
./a.out: symbol lookup error: ./a.out: undefined symbol:
_ZN3Gdk8Drawable20create_cairo_contextEv


On Mon, May 7, 2007 at 1:01 PM, Paul Davis
<pjdavis engineering uiowa edu> wrote:
> 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 - <turingbirds gmail com> 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
>> gtkmm-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>>
> _______________________________________________
> 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]