[Gate-users] GATE v7.2 installation error

Andrej Studen andrej.studen at ijs.si
Thu Aug 25 22:17:50 CEST 2016


Hi Devin!

This is a linking error. Somewhere in your code (be it G4Tubs or 
GateCylinder) the function G4Exception with the specified list of 
parameters is used. However, the library you are linking with doesn't 
have that function. Either you are missing the library containing 
G4Exception of the Geant library the compiler sees doesn't have that 
particular flavor of the G4Exception class. Since all errors are just 
for the one constructor, it could be that your header file and your 
library for G4Exception are not compatible. Do you by chance have more 
than one version of geant on your PC?

Hope this helps.

Andrej

Devin Van Elburg je 25. 08. 2016 ob 18:12 napisal:
> Hello GATE users,
>
> I'm trying to install GATE v7.2 on Ubuntu 16.04. I'm also using:
>
> gcc 4.9.3
> geant4.10.2
> root 6.06.02
>
> As far as I can see, geant4 and root have both been successfully 
> compiled. After configuring and generating in ccmake for gate, then 
> running 'make -j4', I get this error:
>
> CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function 
> `G4Tubs::SetOuterRadius(double)':
> GateCylinder.cc:(.text._ZN6G4Tubs14SetOuterRadiusEd[_ZN6G4Tubs14SetOuterRadiusEd]+0x323): 
> undefined reference to `G4Exception(char const*, char const*, 
> G4ExceptionSeverity, std::basic_ostringstream<char, 
> std::char_traits<char>, std::allocator<char> >&)'
> CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function 
> `G4Tubs::SetZHalfLength(double)':
> GateCylinder.cc:(.text._ZN6G4Tubs14SetZHalfLengthEd[_ZN6G4Tubs14SetZHalfLengthEd]+0x26a): 
> undefined reference to `G4Exception(char const*, char const*, 
> G4ExceptionSeverity, std::basic_ostringstream<char, 
> std::char_traits<char>, std::allocator<char> >&)'
> CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function 
> `G4Tubs::CheckDPhiAngle(double)':
> GateCylinder.cc:(.text._ZN6G4Tubs14CheckDPhiAngleEd[_ZN6G4Tubs14CheckDPhiAngleEd]+0x286): 
> undefined reference to `G4Exception(char const*, char const*, 
> G4ExceptionSeverity, std::basic_ostringstream<char, 
> std::char_traits<char>, std::allocator<char> >&)'
> CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function 
> `G4Tubs::SetInnerRadius(double)':
> GateCylinder.cc:(.text._ZN6G4Tubs14SetInnerRadiusEd[_ZN6G4Tubs14SetInnerRadiusEd]+0x323): 
> undefined reference to `G4Exception(char const*, char const*, 
> G4ExceptionSeverity, std::basic_ostringstream<char, 
> std::char_traits<char>, std::allocator<char> >&)'
> CMakeFiles/Gate.dir/source/geometry/src/GateCone.cc.o: In function 
> `G4Cons::CheckDPhiAngle(double)':
> GateCone.cc:(.text._ZN6G4Cons14CheckDPhiAngleEd[_ZN6G4Cons14CheckDPhiAngleEd]+0x286): 
> undefined reference to `G4Exception(char const*, char const*, 
> G4ExceptionSeverity, std::basic_ostringstream<char, 
> std::char_traits<char>, std::allocator<char> >&)'
> CMakeFiles/Gate.dir/source/geometry/src/GateSphere.cc.o:GateSphere.cc:(.text._ZN8G4Sphere14CheckDPhiAngleEd[_ZN8G4Sphere14CheckDPhiAngleEd]+0x286): 
> more undefined references to `G4Exception(char const*, char const*, 
> G4ExceptionSeverity, std::basic_ostringstream<char, 
> std::char_traits<char>, std::allocator<char> >&)' follow
> collect2: error: ld returned 1 exit status
> CMakeFiles/Gate.dir/build.make:16715: recipe for target 'Gate' failed
> make[2]: *** [Gate] Error 1
> CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all' 
> failed
> make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
> Makefile:127: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
>
>
>
> I suppose I need to define this G4Exception function somewhere, or fix 
> a path to it. Something along those lines. Does anyone have any 
> insights, or have had this problem before?
>
> Is it possible that the G4Exception are in these .cc.o files but 
> defined after they are called by other functions (in G4Tubs, etc), 
> i.e. I need to move G4Exception before say SetOuterRadius is defined? 
> I was going to try this, but I don't know of any programs that can 
> read and edit .cc.o files.
>
> Thanks in advance,
> Devin Van Elburg
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160825/51d17f79/attachment.html>


More information about the Gate-users mailing list