Linking problem

Roger Oberholtzer roger
Mon Feb 21 03:43:00 PST 2005


On Sun, 2005-02-20 at 15:50 -0600, Rick Sivernell wrote:
> List, compile link guru;s
> 
>   Having a bit of a sticky wiket here, as our Brit bros & sisters would say. I
> have a peice of code that has not changed in a while. But when I installed the
> Suse 9.2 on this AMD64 I got some new code version of a build system, the name is
> SCONS. Well I have gotten everything back up the last step in rebuild ing the
> code. But the following will not link in the proper library wx_based-2.5, which
> is libwx_based-2.5.so in the /usr/local/lib directory: 
> g++ -o silverware mainframe.o classviewframe.o silverwareIDE.o -L/usr/local/lib
> -Llib/debug -L/usr/X11R6/lib64 -lwx_based-2.5 -lwx_based_net-2.5
> -lwx_gtk2d_core-2.5 -lwx_gtk2d_svg-2.5 -lwx_gtk2d_adv-2.5 -lwx_gtk2d_animate-2.5
> -lwx_gtk2d_xrc-2.5 -lregistryD -lwidgetsD -lide_editD -ldlgsD -lviewsD
> -lideutilityD -lX11 -lXpm -lXext -lpthread
> 
> What I get is unresoled error for my code from the linker.  I have the
> /usr/local/lib in /etc/ld.so.conf ldconfig -v | grep libwx_based-2.5.3.so is
> found. I just can not seem to get the linker to find the library. As can be seen
> above the -L/usr/local/lib should do the trick, but no joy.  Anyone have any ideas
> here?  This s a Suse 9.2 on an Asus K8N-E Delux mobo with 2 gig memory & 2 250
> hds. An AMD64 cpu.

What is the message? I am guessing that the libs were not compiled
locally, and just copied, right? Still, the error message is useful.
Could it be that there is a different version of the library earlier in
the search path that is being used, rather that the one you want to be
used?

-- 
Roger Oberholtzer <roger at opq.se>



More information about the Linux-users mailing list