New root compilation: Undefined reference to <Method>

Hi all,

I compiled a new version of ROOT, version 5.17 on a SLC3 machine. Compilation works fine, but if I try to compile a test program (the program is empty, just a int main(){}), linking against the ROOT CORE library using:
g++ -I${ROOTSYS}/include -L${ROOTSYS}/lib -lCore test.cpp -o test
I get a lot of errors like:
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to `G__tag_memvar_setup’

The full error list is included.

These are my env variables:
PATH (the part for ROOT):
/project/atlas/Users/fkoetsve/root/bin:/data/atlas/offline/12.0.6/sw/lcg/external/root/5.10.00e/slc3_ia32_gcc323/root/bin
LD_LIBRARY_PATH:
/project/atlas/Users/fkoetsve/root/lib
ROOTSYS:
/project/atlas/Users/fkoetsve/root

The path where I compiled root is:
/project/atlas/Users/fkoetsve/root

Can anyone tell me what I did wrong? I did compile root before on my laptop, same version, and I did not get this problem. I configured it with the flags:
–enable-roofit --enable-pythia6 --with-pythia6-libdir=/project/atlas/Users/fkoetsve/pythia6
then typed make, which gave no errors.

Thanks for the help!
Folkert

/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__defined_tagname' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodArgInfo::Init(Cint::G__MethodInfo&)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodInfo::GetMangledName()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::IsValid()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__scratch_globals_upto' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__search_typename2’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__Longlongref' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__add_compiledheader’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypeInfo::Typenum() const' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__getPrerun’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::HasDefaultConstructor()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__getgvp’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__calc' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__setgvp’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__CallFunc::SetArg(unsigned long long)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodArgInfo::DefaultValue()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::Size()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__TypeInfo::TrueName()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypeInfo::~G__TypeInfo()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__DataMemberInfo::Offset()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__scratch_upto' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__letint’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__va_arg_put' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__BaseClassInfo::Property()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__DataMemberInfo::Init(Cint::G__ClassInfo&)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__free_tempobject’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypeInfo::operator=(Cint::G__TypeInfo const&)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__InitUpdateClassInfo(void ()(char, long))’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__security_recover' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__TypeInfo::G__TypeInfo()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__IncludePathInfo::Name()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Destruct(void*) const’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::HasMethod(char const*)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodInfo::Init(Cint::G__ClassInfo&)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodArgInfo::Next()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__store_tempobject’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodArgInfo::Property()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__TypeInfo::~G__TypeInfo()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__tagtable_setup' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__const_resetnoerror’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__int_cast' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__int’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__DataMemberInfo::MaxIndex(int)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Name()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__resetglobalenv' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__CallFunc::SetFunc(Cint::G__MethodInfo)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__DataMemberInfo::Title()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__SourceFileInfo::IncludedFrom()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to typeinfo for Cint::G__TypeInfo' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__RegisterScriptCompiler’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to dladdr' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__settemplevel’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::Fullname()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__findsym’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__cint_version' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__load_text’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__DataMemberInfo::Init()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__check_setup_version’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__getaryconstruct' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__TypeInfo::Name()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__call_setup_funcs' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Init()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__const_whatnoerror' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__DataMemberInfo::IsValid()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__get_return' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__get_linked_tagnum’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__CallFunc::Execute(void*)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__setnewtype’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__CallFunc::SetFunc(Cint::G__ClassInfo*, char const*, char const*, long*, Cint::G__CallFunc::MatchMode)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodInfo::GetBytecode()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodInfo::Title()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__set_ignoreinclude’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__BaseClassInfo::Offset()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__letLonglong’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__BaseClassInfo::Next()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__Boolref’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__letULonglong' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__BaseClassInfo::Next(int)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__deleteglobal' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__tag_memfunc_setup’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__DataMemberInfo::Name()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__CallFunc::Init()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__inheritance_setup' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__init_process_cmd’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__lasterror' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__TypeInfo::Property()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__getsizep2memfunc' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodInfo::NDefaultArg()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::GetMethod(char const*, char const*, long*, Cint::G__ClassInfo::MatchMode, Cint::G__ClassInfo::InheritanceMode)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__getnumbaseclass’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__loadfile' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__defined_typename’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__set_class_autoloading_table' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__CallFunc::SetFuncProto(Cint::G__ClassInfo*, char const*, char const*, long*)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__Set_RTLD_NOW' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__IncludePathInfo::Next()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__InitGetSpecialObject(void* (*)(char*, Cint::G__ClassInfo*, void**, void**))' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Init(char const*)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__set_class_autoloading_callback' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__TypeInfo::G__TypeInfo()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypedefInfo::IsValid()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodInfo::GetPrototype()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::New()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__const_setnoerror’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypedefInfo::Next()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Title()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__ULonglongref' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__exec_bytecode’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__BaseClassInfo::G__BaseClassInfo(Cint::G__ClassInfo&)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__Floatref’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__Longlong' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::New(int, void*)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__getstructoffset' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__Doubleref’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__ULongref' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__memfunc_setup’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__remove_setup_func' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__setPrerun’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__UShortref' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__Set_RTLD_LAZY’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypedefInfo::Init(int)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__add_ipath’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__UCharref' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__close_inputfiles’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__BaseClassInfo::IsValid()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Property()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodInfo::NArg()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Init(int)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::TmpltName()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__clearstack’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__SourceFileInfo::Next()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__DataMemberInfo::Property()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__unloadfile' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__CallFunc::SetArgs(char const*)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypedefInfo::Init()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__Shortref’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__CallFunc::SetArg(long)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodInfo::Init()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__SourceFileInfo::IsValid()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__process_cmd’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__get_ifile' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodArgInfo::IsValid()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__CallFunc::G__CallFunc()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__set_class_autoloading’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodInfo::IsValid()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::ClassProperty()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypedefInfo::Title()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG(unsigned int0_t, long double,…)(float)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__Longref' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodInfo::Next()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__resetifuncposition' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__Charref’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__double' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__CallFunc::SetArg(double)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypedefInfo::Init(char const*)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG(int0_t, long double,…)(float)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__SourceFileInfo::Init(char const*)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__memvar_setup’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__ClassInfo::IsLoaded()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__DataMemberInfo::ArrayDim()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodInfo::Name()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::DeleteArray(void*, int)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__letdouble' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__resetplocal’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__rewinddictionary' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__tag_memfunc_reset’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__setnull' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::New(void*)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__LockCpp' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__lastifuncposition’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__add_setup_func' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::Delete(void*) const’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__DataMemberInfo::Next()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__setsizep2memfunc’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodArgInfo::Name()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__init_cint’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__CallFunc::SetArg(long long)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__ULonglong’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__get_linked_tagnum_fwd' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__SourceFileInfo::Name()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypeInfo::G__TypeInfo(Cint::G__TypeInfo const&)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__p2f2funcname’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypeInfo::G__TypeInfo(char const*)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__TypeInfo::G__TypeInfo(Cint::G__TypeInfo const&)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__TypeInfo::Size() const' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__tag_memvar_setup’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__loadsystemfile' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__MethodInfo::Property()’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to G__tag_memvar_reset' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__CallFunc::SetArgArray(long*, int)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__MethodInfo::InterfaceMethod()' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toG__store_dictposition’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to Cint::G__DataMemberInfo::ValidArrayIndex(int*, char**)' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference toCint::G__ClassInfo::New(int)’
/project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference to `G__clearfilebusy’
collect2: ld returned 1 exit status

You must add “-lCint” in your link sequence of libs.

Rene

That does give less errors, only 5:

/project/atlas/Users/fkoetsve/root/lib/libCint.so: undefined reference to dlerror' /project/atlas/Users/fkoetsve/root/lib/libCore.so: undefined reference todladdr’
/project/atlas/Users/fkoetsve/root/lib/libCint.so: undefined reference to dlclose' /project/atlas/Users/fkoetsve/root/lib/libCint.so: undefined reference todlopen’
/project/atlas/Users/fkoetsve/root/lib/libCint.so: undefined reference to `dlsym’
collect2: ld returned 1 exit status

I must add that originially I am compiling a program which uses somewhat more root libraries, and the original compile command is:

g++ test.cpp -o test -L $ROOTSYS/lib -I $ROOTSYS/include -lCore -lCint -lTree -lTreePlayer -lHist -lMatrix -lPhysics
which gives many many errors, almost all from libTree.so, some from libTreePlayer.so, like:

/project/atlas/Users/fkoetsve/root/lib/libTreePlayer.so: undefined reference to TFile::GetFileBytesRead()' /project/atlas/Users/fkoetsve/root/lib/libTree.so: undefined reference totypeinfo for TEmulatedCollectionProxy’

Does this mean I need to add more libraries?

Thanks,
Folkert

Found the solution in the release notes:
root.cern.ch/root/Version516.news.html
Under the heading of warnings. The root-config --lib command gives a bunch of the necessary libs (although it appears I don’t need all) What is the libNet library for? It doesn’t work without it…

Thanks for the help!
Folkert

Hi,

[quote=“Folkert”]What is the libNet library for? It doesn’t work without it…[/quote]When you say “it doesn’t work without it” you mean you get error messages? Well - they should tell you what it’s needed for :slight_smile: It’s probably required by linking against libCore.

Cheers, Axel.