Hi Frank, On Sat, 2009-10-24 at 22:37 +0200, Frank S. Thomas wrote: > Hi Christian, > > On Saturday 24 October 2009 20:46:00 Christian Holm Christensen wrote: > > On Sat, 2009-10-24 at 16:04 +0200, Frank S. Thomas wrote: ... > > I guess I should explain how I use Minuit2. I'm developing a C++ program with > a Fcn class that is derived from ROOT::Minuit2::FCNBase. A method of this > class computes some number that I want to minimize. In the simpliest form > this > is achieved by using the class ROOT::Minuit2::MnMinimize together with my > Fcn, > but I want to be able to use other minimizing strategies and to vary/fix the > parameters of my function. The classes in the ROOT::Minuit2 namespace are of > course all declared in the Minuit2 headers (that were included in the old > package). So my C++ source files only #include the required Minuit2 headers, > and nothing else from ROOT, and my program is only linked against > libMinuit2.so, and also nothing else from ROOT. I want to use Minuit2 > directly > in my program and don't need another abstraction layer.
In that case, that you only need Minuit2 and not the `rest' of ROOT, you should link your program against the stand-alone version of Minuit2 available from http://seal.web.cern.ch/seal/MathLibs/Minuit2/html/ http://seal.web.cern.ch/seal/MathLibs/Minuit2/Minuit2.tar.gz Note, that if you link against libMinuit2.so from ROOT you _will_ pull in a lot of ROOT stuff, just try to do > ldd /usr/lib/root/5.24/libMinuit2.so.5.24 linux-vdso.so.1 => (0x00007fffc17ff000) libGraf.so.5.24 => /usr/lib/libGraf.so.5.24 (0x00007fc3f5eed000) libHist.so.5.24 => /usr/lib/libHist.so.5.24 (0x00007fc3f588e000) libMatrix.so.5.24 => /usr/lib/libMatrix.so.5.24 (0x00007fc3f542a000) libMathCore.so.5.24 => /usr/lib/libMathCore.so.5.24 (0x00007fc3f5036000) libCore.so.5.24 => /usr/lib/libCore.so.5.24 (0x00007fc3f462d000) libCint.so.5.24 => /usr/lib/libCint.so.5.24 (0x00007fc3f3a0c000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fc3f36fc000) libm.so.6 => /lib/libm.so.6 (0x00007fc3f347a000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fc3f3263000) libc.so.6 => /lib/libc.so.6 (0x00007fc3f2f10000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fc3f2c89000) libz.so.1 => /usr/lib/libz.so.1 (0x00007fc3f2a71000) libRIO.so.5.24 => /usr/lib/libRIO.so.5.24 (0x00007fc3f26c8000) libpcre.so.3 => /lib/libpcre.so.3 (0x00007fc3f2498000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fc3f2261000) /lib64/ld-linux-x86-64.so.2 (0x00007fc3f661b000) > So basically I'm using Minuit2 just as a standalone library and therefore > need > its header files. Then, you should truly use it as stand-alone and get the stand-alone package :-) Yours, -- ___ | Christian Holm Christensen |_| | ------------------------------------------------------------- | | Address: Sankt Hansgade 23, 4 Phone: (+45) 35 35 96 91 _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91 _| Denmark Office: (+45) 353 25 447 ____| Email: ch...@nbi.dk Web: http://cern.ch/cholm | | -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org