<div dir="ltr">Hi Gate,<div><br></div><div>Ive run into the below error when compiling the gjs. This is on a clean install of G4v10 and Gatev7 development version. I also tried compiling the gjs on vGate (G4v4.9.6 and Gatev7) and it compiled fine. Could this be a compatibility issue with G4v10?</div>
<div><br></div><div>Is anyone able to give some insight to whats happened? </div><div><br></div><div>Cheers</div><div>Jye</div><div><div><br></div><div><br></div><div><div>ubuntu@ubuntu-i386:~/gate.7.0.develop/cluster_tools/jobsplitter$ make</div>
<div>Compiling gjs.cc...</div><div>Compiling GateMacfileParser.cc...</div><div>./src/GateMacfileParser.cc: In constructor âGateMacfileParser::GateMacfileParser(G4String, G4int, G4int, G4String*)â:</div><div>./src/GateMacfileParser.cc:41:26: error: âgetpidâ was not declared in this scope</div>
<div> srand(time(NULL)*getpid());</div><div> ^</div><div>./src/GateMacfileParser.cc: In member function âG4int GateMacfileParser::GenerateResolvedMacro(G4String, G4int, std::ofstream&)â:</div>
<div>./src/GateMacfileParser.cc:137:17: warning: declaration of âbufferâ shadows a member of 'this' [-Wshadow]</div><div> char buffer[256];</div><div> ^</div><div>./src/GateMacfileParser.cc: In member function âvoid GateMacfileParser::InsertSubMacros(std::ofstream&, G4int, std::ofstream&)â:</div>
<div>./src/GateMacfileParser.cc:225:18: warning: declaration of âbufferâ shadows a member of 'this' [-Wshadow]</div><div> char buffer[256];</div><div> ^</div><div>./src/GateMacfileParser.cc: In member function âvoid GateMacfileParser::FormatMacline()â:</div>
<div>./src/GateMacfileParser.cc:931:9: warning: declaration of âpositionâ shadows a previous local [-Wshadow]</div><div> G4int position=macline.find("#");</div><div> ^</div><div>./src/GateMacfileParser.cc:927:8: warning: shadowed declaration is here [-Wshadow]</div>
<div> G4int position=0;</div><div> ^</div><div>make: *** [tmp/GateMacfileParser.o] Error 1</div></div><div><br></div></div></div>