Hi Roger!
On 11 Apr 2007, at 20:54, Roger Mason wrote:
> Hello rooters,
>
> When I try to compile the attached macro I get this error:
>
> root [1] .x fitCaMnMixing.C+ (4)
> Info in <TUnixSystem::ACLiC>: creating shared library /home/rmason/
> Programming/rootmac/fitCaMnMixing_C.so
> dlopen error: /home/rmason/Programming/rootmac/fitCaMnMixing_C.so:
> undefined symbol: _ZN13TLinearFitterC1Ev
This tells you that TLinearFitter is not found. As that is part of libMinuit, load that one before trying to load your script. I'm on MacOS X, so for me it would be
root [1] .L /sw/lib/root/libMinuit.5.dylib root [2] .x fitCaMnMixing.C+(4)
> Load Error: Failed to load Dynamic link library /home/rmason/
> Programming/rootmac/fitCaMnMixing_C.so
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function
> `_start':
> init.c:(.text+0x18): undefined reference to `main'
> /home/rmason/Programming/rootmac/filettEHAm.o: In function
> `fitCaMnMixing(int)':
> filettEHAm.cxx:(.text+0xfa3): undefined reference to
> `TLinearFitter::TLinearFitter()'
> collect2: ld returned 1 exit status
> *** Interpreter error recovered ***
>
That it complains about _main is due to ROOT trying to build a
standalone program from your script, which just _has_ to fail, but
the goal of the exercise is to see the line with "undefined reference
to `TLinearFitter::TLinearFitter()'" in clear text, not mangled like
above.
Ciao,
Roland
-- TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching Telefon 089/289-12575; Telefax 089/289-12570 -- CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482 -- Any society that would give up a little liberty to gain a little security will deserve neither and lose both. - Benjamin Franklin -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M + !V Y+ PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++ ------END GEEK CODE BLOCK------Received on Wed Apr 11 2007 - 22:00:34 CEST
- application/pkcs7-signature attachment: smime.p7s
- application/pgp-signature attachment: This is a digitally signed message part
This archive was generated by hypermail 2.2.0 : Thu Apr 12 2007 - 23:50:01 CEST