RE: [ROOT] Compiling problem

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Sep 09 2002 - 17:43:13 MEST


Hi Jyothsna,

The important part of the message is:

/work/red-clued0/jyothsna/Higgs/bbh120/fileeroLPt.C:5323: undefined
reference to `bbh_anal::Loop(void)'

This indicates that somehow, a member function bbh_anal::Loop() is declared
and used but is not implemented.  Please check your bbh_anal.h and
bbh_anal.C to make sure that they agree is usage and definition of this
member function.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Jyothsna Rani
Sent: Sunday, September 08, 2002 11:18 PM
To: roottalk
Subject: [ROOT] Compiling problem



Hi,

When I tried compiling my macro using the command:
gROOT->LoadMacro("bbh_anal.C+")

I get the following error message:
-------------------------
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
`_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
undefined reference to `main'
/work/red-clued0/jyothsna/Higgs/bbh120/./fileeroLPt.o: In function
`G__bbh_anal_Loop_6_0__FP8G__valuePCcP8G__parami':
/work/red-clued0/jyothsna/Higgs/bbh120/fileeroLPt.C:5323: undefined
reference to `bbh_anal::Loop(void)'
collect2: ld returned 1 exit status
*** Interpreter error recovered ***
--------------------------

I'm using root version v3_03_07d (KCC_4_0) on Linux-2-4.

I've used the options:

TString comp = gSystem->GetMakeSharedLib();
comp.ReplaceAll(" +K3"," -g");
comp.ReplaceAll(" +K2"," -g");
comp.ReplaceAll(" +K1"," -g");
comp.ReplaceAll(" -O2"," -g");
comp.ReplaceAll(" -O1"," -g");
gSystem->SetMakeSharedLib(comp.Data());

before loading my macro.

Can anyone tell me what does the above error message mean and ofcourse a
soln for it???

Thanks a lot,
Jyothsna

   -------------------------------------------------------------
        K. Jyothsna Rani,       Phone Number:
        Tata Institute,                 630-840-3590 (Office)
        DZero Experiment,               630-840-4236 (Residence)
        Mail Station : 352,     FAX:
        P.O.Box : 500,                  630-840-8481
        Fermilab,               E-mail:
        Batavia, IL - 60510             jyothsna@fnal.gov
  ---------------------------------------------------------------



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET