<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Devin!<br>
<br>
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? <br>
<br>
Hope this helps.<br>
<br>
Andrej<br>
<br>
Devin Van Elburg je 25. 08. 2016 ob 18:12 napisal:<br>
</div>
<blockquote
cite="mid:CACAgQ32fWnPFeCBB-sKZq1YSQ+Fu+ucMZ2vN51_CD4Qo102EFw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Hello GATE
users,</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">I'm trying to
install GATE v7.2 on Ubuntu 16.04. I'm also using:</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">gcc 4.9.3</div>
<div class="gmail_default" style="font-size:small">geant4.10.2</div>
<div class="gmail_default" style="font-size:small">root 6.06.02</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">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:</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">
<div class="gmail_default">CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o:
In function `G4Tubs::SetOuterRadius(double)':</div>
<div class="gmail_default">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>
>&)'</div>
<div class="gmail_default">CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o:
In function `G4Tubs::SetZHalfLength(double)':</div>
<div class="gmail_default">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>
>&)'</div>
<div class="gmail_default">CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o:
In function `G4Tubs::CheckDPhiAngle(double)':</div>
<div class="gmail_default">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>
>&)'</div>
<div class="gmail_default">CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o:
In function `G4Tubs::SetInnerRadius(double)':</div>
<div class="gmail_default">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>
>&)'</div>
<div class="gmail_default">CMakeFiles/Gate.dir/source/geometry/src/GateCone.cc.o:
In function `G4Cons::CheckDPhiAngle(double)':</div>
<div class="gmail_default">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>
>&)'</div>
<div class="gmail_default">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</div>
<div class="gmail_default">collect2: error: ld returned 1 exit
status</div>
<div class="gmail_default">CMakeFiles/Gate.dir/build.make:16715:
recipe for target 'Gate' failed</div>
<div class="gmail_default">make[2]: *** [Gate] Error 1</div>
<div class="gmail_default">CMakeFiles/Makefile2:68: recipe for
target 'CMakeFiles/Gate.dir/all' failed</div>
<div class="gmail_default">make[1]: ***
[CMakeFiles/Gate.dir/all] Error 2</div>
<div class="gmail_default">Makefile:127: recipe for target
'all' failed</div>
<div class="gmail_default">make: *** [all] Error 2</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">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?</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">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. </div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Thanks in advance,</div>
<div class="gmail_default">Devin Van Elburg</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>