Message: compiling of geant4 examples Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None compiling of geant4 examples 

Forum: Documentation and Examples
Date: 30 Jun, 2003
From: R Gunasingha <R Gunasingha>

Hi,
    I have recently installed geant4.5.1 on a PC with REDHAT 8.0 Linux.
When I tried to compile the exampleN01 I get the following errors.
I appreciate Any help to get this problems fixed.

Thanks,

Gunasingha

[grb]# gmake 
Making dependency for file exampleN01.cc...
Making dependency for file src/ExN01PrimaryGeneratorAction.cc ...
Making dependency for file src/ExN01PhysicsList.cc ...
Making dependency for file src/ExN01DetectorConstruction.cc ...
Compiling ExN01DetectorConstruction.cc ...
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning:   as it has already been specified as a non-system directory
In file included from /g4/clhep/include/CLHEP/config/CLHEP.h:12,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4Types.hh:41,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4ios.hh:37,
                 from /g4/geant4.5.1.p01/source/global/management/include/globals.hh:47,
                 from /g4/geant4.5.1.p01/source/materials/include/G4Material.hh:85,
                 from src/ExN01DetectorConstruction.cc:30:
/usr/include/stdlib.h:512: warning: ISO C++ does not support `long long'
In file included from /g4/clhep/include/CLHEP/config/CLHEP.h:13,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4Types.hh:41,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4io

In file included from /usr/include/math.h:88,
                 from /g4/clhep/include/CLHEP/config/CLHEP.h:14,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4Types.hh:41,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4ios.hh:37,
                 from /g4/geant4.5.1.p01/source/global/management/include/globals.hh:47,
                 from /g4/geant4.5.1.p01/source/event/include/G4Event.hh:31,
                 from /g4/geant4.5.1.p01/source/run/include/G4RunManager.hh:86,
                 from exampleN01.cc:37:
/usr/include/bits/mathcalls.h:327: warning: ISO C++ does not support `long 
   long'
/usr/include/bits/mathcalls.h:327: warning: ISO C++ does not support `long 
   long'
/usr/include/bits/mathcalls.h:332: warning: ISO C++ does not support `long 
   long'
/usr/include/bits/mathcalls.h:332: warning: ISO C++ does not support `long 
   long'
In file included from /usr/include/math.h:109,
                 from /g4/clhep/include/CLHEP/config/CLHEP.h:14,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4Types.hh:41,
                 from /g4/geant4.5.1.p01/source/global/management/include/G4ios.hh:37,
                 from /g4/geant4.5.1.p01/source/global/management/include/globals.hh:47,
                 from /g4/geant4.5.1.p01/source/event/include/G4Event.hh:31,
                 from /g4/geant4.5.1.p01/source/run/include/G4RunManager.hh:86,
                 from exampleN01.cc:37:
/usr/include/bits/mathcalls.h:327: warning: ISO C++ does not support `long 
   long'
/usr/include/bits/mathcalls.h:327: warning: ISO C++ does not support `long 
   long'
/usr/include/bits/mathcalls.h:332: warning: ISO C++ does not support `long 
   long'
/usr/include/bits/mathcalls.h:332: warning: ISO C++ does not support `long 
   long'
Using granular libraries ...
Linking exampleN01 ...
/usr/bin/ld: cannot find -l/g4/clhep
collect2: ld returned 1 exit status
gmake: *** [/home/phguna/geant4/bin/Linux-g++/exampleN01] Error 1
[grb]# echo $G4INSTALL
/g4/geant4.5.1.p01

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

1 None: Re: compiling of geant4 examples   (Gabriele Cosmo - 01 Jul, 2003)
 Add Message Add Message
to: "compiling of geant4 examples"

 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 ]