Re: error of link during compilation

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

 



Sergei

 *libcairo.so is well in /usr/lib/i386-linux-gnu/

* the 'cairo' development package is well installed

I added the path to libcairo.so with  the option "-L
/usr/lib/i386-linux-gnu" in the LDFLAGS, thus libcairo.so is well found;
but there is still an error; it looks like an error of the linker
itself, no ?


regards,

 Dom

here is the error:

/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/i386-linux-gnu/libcairo.so so try adding it to the linker
command line
/usr/lib/i386-linux-gnu/libcairo.so: could not read symbols: Invalid
operation


Le 05/05/2012 10:16, Sergei Steshenko a écrit :



 ----- Original Message -----
 From: reymond<reymond.d@xxxxxxxxxx>
 To: gtk-list@xxxxxxxxx
 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.



_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux