[LC++] problem with linkage to my library

Grizzly(Francis Smit) grizzly at smit.id.au
Tue Mar 17 03:57:20 EST 2009


David Nugent wrote:
> On 12/03/2009, at 5:45 PM, Grizzly(Francis Smit) wrote:
>
> > Hi I've written a C++/Gtkmm library, it's very small just yet but I  
> > plan
> > to grow it, the thing is when I go to use it in a test program I get
> > linkage errors if I try to use the function in the library but not  
> > other
> > wise I'm coding with anjuta so this is a automake autoconf etc. app  
> > I'll
> > attach the error messages bellow:
> ~
> > Is there any app that would let me examine the exported symbols etc.??
>
> nm
>
thanks
>
> > /bin/bash ../libtool --tag=CXX   --mode=link g++  -g -O2 --enable-
> > auto-import  -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
>
> which of these libraries being linked is yours? Are you sure it's  
> being linked?
>
libgzz but I've solved the problem I was using the parameter -llibgzz
instead
of -lgzz my bad, thanks any way



-- 
  In my life God comes first.... but Linux is pretty high after that :-D
Grizzly(Francis Smit)
http://www.geekcode.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/P/PA d- s+:+> a+>? C++++ UL++++@ P+ L+++ E--- W+++ N+(++) K w---
M-- V-- PS(+) PE(-) Y+(++) PGP++ t+(++) 5 X- R- tv b+++(++++) DI(--) D G
e++(+++) h-- r- y-
------END GEEK CODE BLOCK------




More information about the tuxCPProgramming mailing list