Message: Problems when compile example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Problems when compile example 

Forum: Installation and Configuration
Date: 21 Jan, 2010
From: Francesco Devoto <Francesco Devoto>

Hi users, I installed on my Ubuntu 9.10 Geant4 9.3 in the directory:

/home/devoto/programs/geant4/geant4.9.3

and CLHEP in the directory:

/home/devoto/programs/clhep

and I added to .bashrc the file pseudo_bashrc.txt

Now if I try to compile the example N01 I obtain:

Using granular libraries ... Linking exampleN01 /usr/bin/ld: cannot find -lG4digits collect2: ld returned 1 exit status make: *** [/home/devoto/work/geant4/bin/Linux-g++/exampleN01] Error 1

If before to compile I write:

source env.sh

the output is on file output_env.sh

If now I compile I have:

Creating shared library /home/devoto/work/geant4/tmp/Linux-g++/exampleN01/libexampleN01.so ... /usr/bin/ld: ExN01DetectorConstruction.o: relocation R_X86_64_32S against `vtable for ExN01DetectorConstruction' can not be used when making a shared object; recompile with -fPIC ExN01DetectorConstruction.o: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [/home/devoto/work/geant4/tmp/Linux-g++/exampleN01/libexampleN01.so] Error 1

Where is my mistake? But the strange thing is that yesterday everything worked, and now not... I didn't modified anything, I created only a my new example. Do you have any ideas? Thank you Francesco

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/01/21/14.01-52439-output_env.sh.txt
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/01/21/14.01-51993-pseudo_bashrc.txt

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

1 None: Re: Problems when compile example   (Youming Yang - 13 Jun, 2011)
 Add Message Add Message
to: "Problems when compile example"

 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 ]