Re: linking nsed on RH7.2

From: Chris Crawford (chris2@lns.mit.edu)
Date: Thu Apr 25 2002 - 10:27:44 EDT


hi simon,
  i have compiled it on my rh72 system. are you trying to use a
different directory for your object files? then the problem is that the
$^ in the *Dict.o: rules adds the srcdir path, which is not what
rootcint expects. chi has been working on this problem.
--chris

Simon Sirca wrote:
>
> Hi,
>
> I have problems linking nsed on a machine running RH7.2 with root version
> 3.02/06 [18 December 2001]. libBlast.so seems to be generated well, but
> nsed does not link properly:
>
> g++ -o nsed -g nsed.o libBlast.so -L/opt/root-rh7.2/lib/root -lCore -lCint \
> -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics \
> -lGui -lm -ldl -lpthread -rdynamic -lMinuit -L/usr/X11R6/lib -lXpm -lX11 -lXm -lXt -lXtst -lXmu -lXp -lSM -lICE -lXext -lcrypt -ldl -lnsl
> nsed.o: In function `void __destroy_aux<TBLWc1Segment **>(TBLWc1Segment **, TBLWc1Segment **, __true_type)':
> /usr/include/g++-3/stl_alloc.h(.gnu.linkonce.t._._8TBLRecon+0x13): undefined reference to `TBLRecon virtual table'
> /usr/include/g++-3/stl_alloc.h(.gnu.linkonce.t._._11TBLSimTrack+0x12): undefined reference to `TBLSimTrack virtual table'
> /usr/include/g++-3/stl_alloc.h(.gnu.linkonce.t._._6TBLRaw+0xf): undefined reference to `TBLRaw virtual table'
> /usr/include/g++-3/stl_alloc.h(.gnu.linkonce.t._._18TBLWc1HitContainer+0x10): undefined reference to `TBLWc1HitContainer virtual table'
> .
> .
> more of the stuff, and then:
> .
> .
> libBlast.so: undefined reference to `TBLDetRecon virtual table'
> libBlast.so: undefined reference to `TBLNewtDer::ShowMembers(TMemberInspector &, char *)'
> libBlast.so: undefined reference to `TBLMagField::Class_Name(void)'
> libBlast.so: undefined reference to `TBLData virtual table'
> .
> .
> (and more).
>
> This is all using configure and compiling from scratch. The blastmc and
> the userGen parts seem to be ok. Swapping g++ to egcs++ does not do
> any good. Any hints?
>
> Simon
>
> --
> Simon Sirca
> MIT-LNS, Room 26-402 Tel: +1 617 258-5438
> 77 Massachusetts Avenue Fax: +1 617 452-5950
> Cambridge, MA 02139-4307, USA URL: http://pierre.mit.edu/~sirca



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:28 EST