I am an unexperienced user of root, cint or ginac, which latest available versions I installed on my Linux 2.4.2 (ROOT 3.02/06 and GiNaC 1.0.3). I tried to interprete the simple GiNaC hello.cc example (from the Tutorial) with cint and root/cint, but the interpreter complains that library_init() is declared, but not defined. It is defined in utils.cpp. I tried to "gSystem->Load("libginac.so");" in root, but if I' lucky, the new cint error message in root is "~library_init() declared, but not defined" (~library_init() does in fact no seem to be defined). Could anybody give me a hint, what I should do? Thanks Hans Peter
Hi, On Fri, 4 Jan 2002, Hans Peter Würmli wrote:
I tried to interprete the simple GiNaC hello.cc example (from the Tutorial) with cint and root/cint, but the interpreter complains that library_init() is declared, but not defined. It is defined in utils.cpp. I tried to "gSystem->Load("libginac.so");" in root, but if I' lucky, the new cint error message in root is "~library_init() declared, but not defined" (~library_init() does in fact no seem to be defined).
Err? It's declared in ex.h and defined right below the definition of the ctor in utils.cpp. How could you not find it? Hmm, its definition is a little bit trivial, but still a text symbol in your library should have been generated. So it seems to be just another stupid bug in Cint. Guess what? This is a constant source of trouble: Cint wants to link against every function/method that has ever been declared. So, although library_init's ctors and dtors are absolutely none of Cint's business, it still needs a text symbol in the library. But anyways, as I said, it should be there. nm(1) is your friend in such cases.
Could anybody give me a hint, what I should do?
Please try to download the ginaccint sources from the usual FTP-site, install a vanilla Cint (without Root) and see how that works. I was reasonably successful with Cint version 5.15.24. If this enlightens you, then proceed with Root. Good luck -richy. -- Richard B. Kreckel <Richard.Kreckel@Uni-Mainz.DE> <http://wwwthep.physik.uni-mainz.de/~kreckel/>
On Sat, 5 Jan 2002 22:35:38 +0100 (CET) "Richard B. Kreckel" <kreckel@thep.physik.uni-mainz.de> wrote:
Guess what? This is a constant source of trouble: Cint wants to link against every function/method that has ever been declared.
I realise that, but have not yet been very successful with makecint, but will continue trying.
Could anybody give me a hint, what I should do?
Please try to download the ginaccint sources from the usual FTP-site, install a vanilla Cint (without Root) and see how that works. I was reasonably successful with Cint version 5.15.24. If this enlightens you, then proceed with Root.
Thank you, that worked to make a working ginaccint. Hopefully, I manage to go on to make a shared library that can be imported into ROOT. (Unfortunately, tomorrow starts work again, and I can only play in my pasttime.) Best regards Hans Peter
On Sun, 6 Jan 2002, Hans Peter Würmli wrote:
Thank you, that worked to make a working ginaccint. Hopefully, I manage to go on to make a shared library that can be imported into ROOT. (Unfortunately, tomorrow starts work again, and I can only play in my pasttime.)
Apparently, others were more lucky than you: <http://www.arxiv.org/abs/math-ph/0201011>. OTOH, this still seems to be built on top of GiNaC-0.8.3. Since it still works with Cint I cannot fancy what goes wrong with Root now. Maybe you should have a look at these sources: <http://www.fis.unipr.it/~stefanw/gtybalt.html>. Luck -richy. -- Richard B. Kreckel <Richard.Kreckel@Uni-Mainz.DE> <http://wwwthep.physik.uni-mainz.de/~kreckel/>
participants (2)
-
Hans Peter W�rmli
-
Richard B. Kreckel