----- 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