source: trunk/Documentation/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch10s02.html @ 901

Last change on this file since 901 was 901, checked in by garnier, 16 years ago

Add Geant4 Documentation at 8.12.2008

File size: 5.4 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>FAQ.2.  Run Time Problems</title><link rel="stylesheet" href="../xml/XSLCustomizationLayer/G4HTMLStylesheet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="Geant4 User's Guide for Application Developers"><link rel="up" href="ch10.html" title="Chapter FAQ.  Frequentry Asked Questions"><link rel="prev" href="ch10.html" title="Chapter FAQ.  Frequentry Asked Questions"><link rel="next" href="ch10s03.html" title="FAQ.3.  Geometry"><script language="JavaScript">
2function remote_win(fName)
3{
4   var url = "AllResources/Detector/geometry.src/" + fName;
5   RemoteWin=window.open(url,"","resizable=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=520,height=520")
6   RemoteWin.creator=self
7}
8</script></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">FAQ.2. 
9Run Time Problems
10</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch10.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><th width="60%" align="center">Chapter FAQ. 
11Frequentry Asked Questions
12</th><td width="20%" align="right"> <a accesskey="n" href="ch10s03.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="qanda.RunTimeProb"></a>FAQ.2. 
13Run Time Problems
14</h2></div></div></div><div class="qandaset"><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="qanda.RunTimeProb.SegFltInExmp"></a><a name="id553561"></a><b>Q:</b></td><td align="left" valign="top"><p>
15  On Linux, I get a segmentation fault as soon as I run one of the official
16  examples.
17</p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:</b></td><td align="left" valign="top"><p>
18  Check that the CLHEP library has been installed and compiled coherently
19  with the same compiler you use for installing Geant4 and for the same
20  version of Linux distribution. For example, a binary object produced with
21  Red-Hat 7.X is not fully compatible with binaries running on RH 9.X or
22  higher, due to different libc used in the two configurations.
23</p></td></tr><tr class="question"><td align="left" valign="top"><a name="qanda.RunTimeProb.ErrShareLib"></a><a name="id553584"></a><b>Q:</b></td><td align="left" valign="top"><p>
24  I installed Geant4 libraries and built my application, when I try to run
25  it I get:
26  </p><div class="informalexample"><pre class="programlisting">
27         error in loading shared libraries:
28         libCLHEP.so: cannot open shared object file:
29         No such file or directory.
30  </pre></div><p>
31</p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:</b></td><td align="left" valign="top"><p>
32  Your installation of CLHEP includes shared libraries. You need to specify
33  the path where libCLHEP.so is installed through your environment variable
34  <code class="literal">LD_LIBRARY_PATH</code>. For example, in tcsh UNIX shell:
35  </p><div class="informalexample"><pre class="programlisting">
36       setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$CLHEP_BASE_DIR/lib
37  </pre></div><p>
38</p></td></tr><tr class="question"><td align="left" valign="top"><a name="qanda.RunTimeProb.errFPE"></a><a name="id553626"></a><b>Q:</b></td><td align="left" valign="top"><p>
39  On my system I get a Floating Point Exception (FPE) since some physics
40  processes sometimes return <code class="literal">DBL_MAX</code> as interaction
41  length  and this number is afterwards multiplied by a number greater
42  than 1.
43</p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:</b></td><td align="left" valign="top"><p>
44  Geant4 coding conventions and installation setup explicitly follow the
45  ANSI/IEEE-754 Standard for the initialization of floating-point
46  arithmetic hardware and portability. The Standard foresees floating-point
47  arithmetic to be nonstop and underflows to be gradual. On DEC platforms,
48  for example, the ANSI/IEEE-754 Standard compliance needs to be explicitly
49  set (since deactivated by default); in this case we use infact the option
50  "-ieee" on the DEC/cxx native C++ compiler to achieve this. You should
51  check if your compiler provides compilation options for activating Standard
52   initialization of FP arithmetic (it may be platform specific).
53</p></td></tr></tbody></table></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch10.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><td width="20%" align="center"><a accesskey="u" href="ch10.html"><img src="AllResources/IconsGIF/up.gif" alt="Up"></a></td><td width="40%" align="right"> <a accesskey="n" href="ch10s03.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr><tr><td width="40%" align="left" valign="top">Chapter FAQ. 
54Frequentry Asked Questions
55 </td><td width="20%" align="center"><a accesskey="h" href="index.html"><img src="AllResources/IconsGIF/home.gif" alt="Home"></a></td><td width="40%" align="right" valign="top"> FAQ.3. 
56Geometry
57</td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.