Message: Re: Link the library against the Root libraries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad Re: Link the library against the Root libraries 

Forum: Installation and Configuration
Re: Sad Link the library against the Root libraries (Cristian Bungau)
Re: Note Re: Link the library against the Root libraries
Date: 08 Dec, 2011
From: Cristian Bungau <Cristian Bungau>

Hello,

Thank you for your reply. The output of

$ROOTSYS/bin/root-config --glibs

looks fine:

-L/home/cristian/root/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic

and adding those line to my Makefile is not solving the problems even in geant4.9.4.p02

What I have noticed though was that if I remove any reference to TCanvas or TPad in my code, and have only TFile and THist, the code compiles fine.

As soon as I try to introduce a TCanvas the code does not link at the end of the compilation:

Linking Thorium_square_rods /home/cristian/geant4_workdir/tmp/Linux-g++/Thorium_square_rods/libThorium_square_rods.so: undefined reference to `TCanvas::TCanvas(char const*, char const*, int, int, int, int)' collect2: ld returned 1 exit status make: *** [/home/cristian/geant4_workdir/bin/Linux-g++/Thorium_square_rods] Error 1

But without any canvas reference in my code links fine. This is happening in Ubuntu 11.10 with both geant4.9.4 and geant4.9.5.

So I guess I will have to live with this.

Best regards,

Cristian

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Note: Re: Link the library against the Root libraries   (jcook - 08 Dec, 2011)
(_ More: Re: Link the library against the Root libraries   (Cristian Bungau - 09 Dec, 2011)
(_ None: Re: Link the library against the Root libraries   (Nicholas Collin Paul de Gloucester - 09 Dec, 2011)
 Add Message Add Message
to: "Re: Link the library against the Root libraries"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]