Message: Re: Example N01 now OK....But now exampleN02 had compile errors Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Example N01 now OK....But now exampleN02 had compile errors  

Forum: Installation and Configuration
Re: Question Example N01 Not Executing (Zaldy Nawang)
Date: 16 Jul, 2007
From: Zaldy Nawang <zaldynow@yahoo.com.ph>

Dear FEDORA4 users,

This is the continuation of my previous thread....

Previous problem I got was now solved...I set environmental varaibles CLHEP_LIB_DIR and LD_LIBRARY_PATH into its proper values... Then after doing this, I recompile and execute N01. The result is successful.

Though, I tried exampleN02 but this time I got this new sets of errors during the linking time..please see the errors: .................... .................... Compiling ExN03PrimaryGeneratorMessenger.cc ... Compiling ExN03RunAction.cc ... Compiling ExN03SteppingAction.cc ... Compiling ExN03SteppingVerbose.cc ... Creating/replacing object files in /home/zaldy/MyG4WorkingDirectory/novice/N03/tmp/Linux-g++/exampleN03/libexampleN03.a ...

ar: creating /home/zaldy/MyG4WorkingDirectory/novice/N03/tmp/Linux-g++/exampleN03/libexampleN03.a
Compiling exampleN03.cc ... Using granular libraries ... Linking exampleN03 ... /home/zaldy/ZNGeant4/geant4/lib/Linux-g++/libG4visHepRep.a(DeflateOutputStreamBuffer.o)(.text+0x166): In function `cheprep::DeflateOutputStreamBuffer::overflow(int)': DeflateOutputStreamBuffer.cc: undefined reference to `deflate' /home/zaldy/ZNGeant4/geant4/lib/Linux-g++/libG4visHepRep.a(DeflateOutputStreamBuffer.o)(.text+0x3ab): In function `cheprep::DeflateOutputStreamBuffer::init(bool)': DeflateOutputStreamBuffer.cc: undefined reference to `deflateInit2_' /home/zaldy/ZNGeant4/geant4/lib/Linux-g++/libG4visHepRep.a(DeflateOutputStreamBuffer.o)(.text+0x459): In function `cheprep::DeflateOutputStreamBuffer::finish()': DeflateOutputStreamBuffer.cc: undefined reference to `deflate' /home/zaldy/ZNGeant4/geant4/lib/Linux-g++/libG4visHepRep.a(DeflateOutputStreamBuffer.o)(.text+0x482):DeflateOutputStreamBuffer.cc: undefined reference to `deflate' /home/zaldy/ZNGeant4/geant4/lib/Linux-g++/libG4visHepRep.a(DeflateOutputStreamBuffer.o)(.text+0x4c6):DeflateOutputStreamBuffer.cc: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
---------------------------------------------END here

How do we fixed this? Using geant4.9.0, CLHEP2.0.3.1 compiled from source with gcc version 4.0.0 on FEDORA4

Thanks Zaldy

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

1 None: Re: Example N01 now OK....But now exampleN02 had compile errors   (Ben Morgan - 19 Jul, 2007)
3 None: Re: Example N01 now OK....But now exampleN02 had compile errors   (Mark Donszelmann - 19 Jul, 2007)
 Add Message Add Message
to: "Re: Example N01 now OK....But now exampleN02 had compile errors "

 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 ]