Message: Re: unknown type G4String G4Int Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: unknown type G4String G4Int 

Forum: Installation and Configuration
Re: None unknown type G4String G4Int (Anna Corsi)
Date: 06 Oct, 2014
From: Ben Morgan <Ben Morgan>

On Fri, 03 Oct 2014 06:20:05 GMT, Anna Corsi wrote:
> [  6%] Building CXX object CMakeFiles/EventBuilder.dir/src/
> In file included from /Users/acorsi/codes/shogun-sim/EventBuilderRIKEN/src/
> /Users/acorsi/codes/shogun-sim/EventBuilderRIKEN/include/EventAction.hh:20:22: error: unknown type name 'G4String'
>     void SetDrawFlag(G4String val) {drawFlag = val;};
>                      ^
> /Users/acorsi/codes/shogun-sim/EventBuilderRIKEN/include/EventAction.hh:21:25: error: unknown type name 'G4int'
>     void SetPrintModulo(G4int val) {printModulo = val;};
>                         ^
> /Users/acorsi/codes/shogun-sim/EventBuilderRIKEN/include/EventAction.hh:25:5: error: unknown type name 'G4String'
>     G4String                  drawFlag;
>     ^
> /Users/acorsi/codes/shogun-sim/EventBuilderRIKEN/include/EventAction.hh:26:5: error: unknown type name 'G4int'
>     G4int                     printModulo;                    
>     ^

What headers does the file EventAction.hh include? To pick up G4int and G4String, both G4Types.hh and G4String.hh should be #include'd.

If that doesn't resolve the problem, try running with make VERBOSE=1, which will print out the full command lines used when compiling. Check the include paths used to confirm the expected path to the Geant4 headers is there. Your CMake script looks o.k., but the VERBOSE option can help to confirm the correct paths are passed on to the compiler.



 Add Message Add Message
to: "Re: unknown type G4String G4Int"

 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 ]