Re: problem with exporting symbols in library



Try doing -export-dynamic in your CFLAGS

Regards,
Amol
On Thu, 2009-03-12 at 02:24 +1100, Grizzly(Francis Smit) wrote:
> Hi as the subject says I'm having trouble  with  getting  my library  to
> make  it's symbols  in this  case   a   function  available  to 
> outside  code   the error  log is as follows:
> 
> 
> 
> make
> make  all-recursive
> make[1]: Entering directory `/mnt/data/grizzly/Projects/gtk-test-gzz'
> make[1]: Entering directory `/mnt/data/grizzly/Projects/gtk-test-gzz'
> Making all in src
> make[2]: Entering directory `/mnt/data/grizzly/Projects/gtk-test-gzz/src'
> make[2]: Entering directory `/mnt/data/grizzly/Projects/gtk-test-gzz/src'
> /bin/bash ../libtool --tag=CXX   --mode=link g++  -g -O2   -o
> gtk_test_gzz main.o main-win.o -lglademm-2.4 -lgtkmm-2.4 -lglade-2.0
> -lgiomm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lpangomm-1.4 -lcairomm-1.0
> -lglibmm-2.4 -lsigc-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0
> -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo
> -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0
> -lglib-2.0  
> libtool: link: g++ -g -O2 -o gtk_test_gzz main.o main-win.o 
> /usr/lib/libglademm-2.4.so /usr/lib/libgtkmm-2.4.so
> /usr/lib/libglade-2.0.so /usr/lib/libgiomm-2.4.so
> /usr/lib/libgdkmm-2.4.so /usr/lib/libatkmm-1.6.so -lpangomm-1.4
> /usr/lib/libcairomm-1.0.so /usr/lib/libglibmm-2.4.so
> /usr/lib/libsigc-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so
> /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so
> /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so
> /usr/lib/libpangocairo-1.0.so /usr/lib/libgio-2.0.so
> /usr/lib/libcairo.so -lpixman-1 -lpng12 -lxcb-render-util -lxcb-render
> -lxcb -lXrender -lX11 -lm /usr/lib/libpango-1.0.so
> /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so
> /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so
> main-win.o: In function `MainWin':
> /home/grizzlysmit/Projects/gtk-test-gzz/src/main-win.cpp:32: undefined
> reference to `gzz::QuoteFile(Glib::ustring)'
> /home/grizzlysmit/Projects/gtk-test-gzz/src/main-win.cpp:32: undefined
> reference to `gzz::QuoteFile(Glib::ustring)'
> collect2: ld returned 1 exit status
> make[2]: *** [gtk_test_gzz] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> make[2]: Leaving directory `/mnt/data/grizzly/Projects/gtk-test-gzz/src'
> make[2]: Leaving directory `/mnt/data/grizzly/Projects/gtk-test-gzz/src'
> make[1]: Leaving directory `/mnt/data/grizzly/Projects/gtk-test-gzz'
> make[1]: Leaving directory `/mnt/data/grizzly/Projects/gtk-test-gzz'
> Completed unsuccessful
> Total time taken: 3 secs
> 



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