CINT -> g++ [message #4519] |
Wed, 20 June 2007 13:56 |
Konstantin Antipin
Messages: 3 Registered: May 2007 Location: Frankfurt
|
occasional visitor |
From: *ikf.physik.uni-frankfurt.de
|
|
Hi all,
I have a question concerning migration from CINT to g++.
Usually I am using root to load and execute macros with my tasks
for analysing data. So, I am using cint interpreter.
But currently I am interested to make a stand-alone program and thus use g++ for compiling.
So, I wrote a makefile (see attachment) and compiled my program. But when I am trying to execute it, it fails with segmentation error on loading libraries. I figured out, that the problem is in libParBase library in CbmRuntimeDb class. It fails when trying to access variable 'contFactories' (static TList) in function 'addContFactory'.
I can't find the reason why when I load this library under ROOT session all works perfectly.
So, if anybody has any suggestion how to make it work (if is it actually possible?), I would be very grateful.
Regards,
Konstantin
-
Attachment: Makefile
(Size: 1.42KB, Downloaded 708 times)
-
Attachment: test.C
(Size: 4.66KB, Downloaded 739 times)
Konstantin
|
|
|
|
|
Re: Why? [message #4541 is a reply to message #4540] |
Fri, 22 June 2007 19:51 |
Konstantin Antipin
Messages: 3 Registered: May 2007 Location: Frankfurt
|
occasional visitor |
From: *ikf.physik.uni-frankfurt.de
|
|
Well, the problem probably is occurs due to the following:
There are some dependencies between this libraries. And when I am loading libraries not in the proper order - some of the static member are not initialized. And when on loading library constructor of this library is executed, segmentation error appears.
This is only guess - but it seems to be the true.
Konstantin
|
|
|