Message: Error compiling example in Cygwin Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Error compiling example in Cygwin 

Forum: Documentation and Examples
Date: 02 Aug, 2012
From: Jonathan Porter <Jonathan Porter>

I'm trying to compile an example of R-hadron simulation in Geant4 (from the cern website; not included with the Geant4 release). It apparently works on a mac, but when I try to compile it on my Windows 7 computer with Cygwin, I get the following error:

src/ : error C2664: 'CLHEP::HepLorentzVector::setVectM' : cannot convert parameter 1 from 'double' to 'const CLHEP::Hep3Vector &' Reason: cannot convert from 'double' to 'const CLHEP::Hep3Vetor' Constructor for class 'CLHEP::Hep3Vector' is declared 'explicit' make: *** [c:/g4work/G4Rhadrons_with_Regge_model/tmp/WIN32-VC/exampleRhad/FullModelHadronicProcess.o] Error 2

I've attached the file, but since the lines are not numbered I've written out line 173 below:

line 173: Target4Momentum.setVectM(0.,aTarget->GetPDGMass());

Any suggestions?




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

1 None: Re: Error compiling example in Cygwin   (Ivana Hrivnacova - 13 Aug, 2012)
2 Question: Re: Error compiling example in Cygwin   (Philip McGeachy - 07 Nov, 2012)
1 None: Re: Error compiling example in Cygwin   (Ivana Hrivnacova - 21 Dec, 2012)
 Add Message Add Message
to: "Error compiling example in Cygwin"

 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 ]