Re: root on Lynx problems

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 25 2000 - 16:31:33 MET


Hi Anton,
In case of LynxOS, we cannot create a shared lib for the time being.
Only an archive library can be created.
When you link an application on this sytem, you have to force the
linking
of the dictionary functions G__*.o files to get the classes dictionary
in the executable module.
You must add the $ROOTSYS/src/*G__*.o files (at least the G__*.o files
corresponding to the classes really used in your application.
This is automatic when linking with shared libs.

Rene Brun


Anton Fokin wrote:
> 
> Hi,
> 
> we have managed to compile root libs on Lynx, but when we try to compile
> root itself or hsimple example, the linker says
> 
> g++   -mminimal-toc -o ../bin/root.exe MAIN_rmain.o \
>            -L../lib -lNew -lCore -lCint -lHist -lGraf -lGraf3d -lTree -lRint
>  -lm -lstdc++
> ../lib/libCore.a(BASE_Datime.o)(.pr+0x2c):BASE_Datime.cxx: undefined
> reference to `TDatime::Class_Version(void)'
> ../lib/libCore.a(BASE_Datime.o)(.pr+0x38):BASE_Datime.cxx: undefined
> reference to `TDatime::DeclFileName(void)'
> ../lib/libCore.a(BASE_Datime.o)(.pr+0x50):BASE_Datime.cxx: undefined
> reference to `TDatime::DeclFileLine(void)'
> ../lib/libCore.a(BASE_Datime.o)(.pr+0xd2c):BASE_Datime.cxx: undefined
> reference to `TDatime::Class_Version(void)'
> ../lib/libCore.a(BASE_Datime.o)(.rw+0x10):BASE_Datime.cxx: undefined
> reference to `TDatime virtual table'
> ../lib/libCore.a(BASE_Datime.o)(.rw+0x14):BASE_Datime.cxx: undefined
> reference to `TDatime virtual table'
> ../lib/libCore.a(BASE_Datime.o)(.rw+0x18):BASE_Datime.cxx: undefined
> reference to `TDatime virtual table'
> ../lib/libCore.a(BASE_G__Base2.o)(.pr+0x13ec):BASE_G__Base2.cxx: undefined
> reference to `TDatime::ShowMembers(TMemberInspector &, char *)'
> ../lib/libCore.a(BASE_G__Base2.o)(.pr+0x496c):BASE_G__Base2.cxx: undefined
> reference to `TDirectory::ShowMembers(TMemberInspector &, char *)'
> ../lib/libCore.a(BASE_G__Base2.o)(.pr+0x66530):BASE_G__Base2.cxx: undefined
> reference to `TDatime::TDatime(TDatime const &)'
> ../lib/libCore.a(BASE_VirtualPad.o)(.rw+0x94):BASE_VirtualPad.cxx: undefined
> reference to `TVirtualPad::ShowMembers(TMemberInspector &, char *)'
> ../lib/libCore.a(BASE_VirtualPad.o)(.rw+0x9c):BASE_VirtualPad.cxx: undefined
> reference to `TVirtualPad::Streamer(TBuffer &)'
> ../lib/libCore.a(BASE_VirtualPad.o)(.rw+0xec):BASE_VirtualPad.cxx: undefined
> reference to `TVirtualPad::ShowMembers(TMemberInspector &, char *)'
> ../lib/libCore.a(BASE_VirtualPad.o)(.rw+0xf4):BASE_VirtualPad.cxx: undefined
> reference to `TVirtualPad::Streamer(TBuffer &)'
> ../lib/libCore.a(BASE_VirtualPad.o)(.rw+0x14c):BASE_VirtualPad.cxx:
> undefined reference to `TVirtualPad::ShowMembers(TMemberInspector &, char
> *)'
> 
> and so on ...
> 
> Any suggestions?
> 
> regards,
> /Anton



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:20 MET