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
~/src/gtk/clock$ ./a.out
./a.out: symbol lookup error: ./a.out: undefined symbol:

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:
>> 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++ `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
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org

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