Re: error of link during compilation
- From: Sergei Steshenko <sergstesh yahoo com>
- To: "reymond d labogeo pf" <reymond d labogeo pf>, "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: error of link during compilation
- Date: Sat, 5 May 2012 13:16:46 -0700 (PDT)
----- Original Message -----
> From: reymond <reymond d labogeo pf>
> To: gtk-list gnome org
> Cc:
> Sent: Saturday, May 5, 2012 10:49 PM
> Subject: error of link during compilation
>
> Hi
>
> I have an error at the end of compilation of my Gtk application given here:
>
> /usr/bin/ld: graph.o: undefined reference to symbol
> 'cairo_set_source_rgb'
> /usr/bin/ld: note: 'cairo_set_source_rgb' is defined in DSO
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcairo.so so try
> adding it to the linker command line
> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcairo.so: could not
> read symbols: Invalid operation
>
>
> My project (http://sourceforge.net/projects/seismic-toolkit ) is rather old
> (several years), and I never got such error.
>
> I don't know if the error is coming from Gtk, gcc, or linux version; I
> upgrade recently to Ubuntu 12.04 LTS, with the new releases of the Gtk project.
>
> Here is the config.log (there is no error during configure):
>
> thank you for any help
>
> Dom
>
'ld' suggests you what to do:
"
'cairo_set_source_rgb' is defined in DSO /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libcairo.so so try adding it to the linker command line
".
I.e. in your case 'cairo' library is apparently not in 'ld' default search path, it's (if I make "calculations" correctly) under
/usr/lib/i386-linux-gnu/
directory.
Or maybe 'cairo' development package is not installed.
Regards,
Sergei.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]