[Gate-users] Jobsplitter make error

Jye Smith jye.smith at gmail.com
Thu Sep 4 06:36:05 CEST 2014


Hi Gate,

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?

Is anyone able to give some insight to whats happened?

Cheers
Jye


ubuntu at ubuntu-i386:~/gate.7.0.develop/cluster_tools/jobsplitter$ make
Compiling gjs.cc...
Compiling GateMacfileParser.cc...
./src/GateMacfileParser.cc: In constructor
âGateMacfileParser::GateMacfileParser(G4String, G4int, G4int, G4String*)â:
./src/GateMacfileParser.cc:41:26: error: âgetpidâ was not declared in this
scope
  srand(time(NULL)*getpid());
                          ^
./src/GateMacfileParser.cc: In member function âG4int
GateMacfileParser::GenerateResolvedMacro(G4String, G4int, std::ofstream&)â:
./src/GateMacfileParser.cc:137:17: warning: declaration of âbufferâ shadows
a member of 'this' [-Wshadow]
  char buffer[256];
                 ^
./src/GateMacfileParser.cc: In member function âvoid
GateMacfileParser::InsertSubMacros(std::ofstream&, G4int, std::ofstream&)â:
./src/GateMacfileParser.cc:225:18: warning: declaration of âbufferâ shadows
a member of 'this' [-Wshadow]
   char buffer[256];
                  ^
./src/GateMacfileParser.cc: In member function âvoid
GateMacfileParser::FormatMacline()â:
./src/GateMacfileParser.cc:931:9: warning: declaration of âpositionâ
shadows a previous local [-Wshadow]
   G4int position=macline.find("#");
         ^
./src/GateMacfileParser.cc:927:8: warning: shadowed declaration is here
[-Wshadow]
  G4int position=0;
        ^
make: *** [tmp/GateMacfileParser.o] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140904/dfc08290/attachment.html>


More information about the Gate-users mailing list