Message: undefined reference to `G4UIGAG::G4UIGAG()' Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question undefined reference to `G4UIGAG::G4UIGAG()' 

Keywords: link problem with libG4UIGAG.so
Forum: (Graphical) User Interfaces
Date: 22 Jan, 2005
From: Kazuyoshi Furutaka <Kazuyoshi Furutaka>

I'm using geant4 7.0 (CLHEP-1.8.1.0) on a Fedora Core 3
system (gcc/g++ ver.3.4.2, GNU Make 3.80, GNU ld ver.2.15.92.0.2).

When I tried to make the modified exampleN02 to use GAG
with the modification attached at the bottom of this message
(and G4UI_USE_GAG=1, G4UI_USE_TCSH is unset), the link failed
because of the lack of the reference to 'G4UIGAG::G4UIGAG()'.
# It was ok at the time of geant4 6.1.

The same code could be compiled by unsetting G4UI_USE_GAG
(and even with G4UI_USE_TCSH=1).

The 'libG4UIGAG.so' file exists in the $G4LIB/$G4SYSTEM directory
with the 'libG4UIbasic.so' and 'libG4UIcommon.so' files.

What's happening?
Is there anyone who can compile the modified code on the
same configuration (Fedora core 3 or the like)?
Any suggestion/comments are welcome.

Thanks in advance.

Kazuyoshi


--- exampleN02.cc       2004-12-18 01:07:12.000000000 +0900
+++ exampleN02GAG.cc    2005-01-22 18:16:02.534190180 +0900
@@ -45,6 +45,10 @@
 #include "ExN02VisManager.hh"
 #endif

+#ifdef G4UI_USE_GAG
+#include "G4UIGAG.hh"
+#endif
+
 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

 int main(int argc,char** argv) {
@@ -85,6 +89,8 @@
     G4UIsession * session = 0;
 #ifdef G4UI_USE_TCSH
       session = new G4UIterminal(new G4UItcsh);
+#elif defined G4UI_USE_GAG
+      session = new G4UIGAG;
 #else
       session = new G4UIterminal();
 #endif
--- GNUmakefile 2004-12-18 01:07:12.000000000 +0900
+++ GNUmakefile.GAG     2005-01-22 18:13:55.765255783 +0900
@@ -3,7 +3,7 @@
 # GNUmakefile for examples module.  Gabriele Cosmo, 06/04/98.
 # --------------------------------------------------------------

-name := exampleN02
+name := exampleN02GAG
 G4TARGET := $(name)
 G4EXLIB := true

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

1 More: Re: undefined reference to `G4UIGAG::G4UIGAG()'   (Kazuyoshi Furutaka - 23 Jan, 2005)
3 None: Re: undefined reference to `G4UIGAG::G4UIGAG()'   (John Allison - 23 Jan, 2005)
1 Ok: Re: undefined reference to `G4UIGAG::G4UIGAG()'   (Kazuyoshi Furutaka - 23 Jan, 2005)
(_ None: Re: undefined reference to `G4UIGAG::G4UIGAG()'   (John Allison - 23 Jan, 2005)
(_ Sad: Re: undefined reference to `G4UIGAG::G4UIGAG()'   (Kazuyoshi Furutaka - 23 Jan, 2005)
1 None: Re: undefined reference to `G4UIGAG::G4UIGAG()'   (John Allison - 23 Jan, 2005)
... 2 Message(s)
3 None: Re: undefined reference to `G4UIGAG::G4UIGAG()'   (Hajime YOSHIDA - 26 Jan, 2005)
...
 Add Message Add Message
to: "undefined reference to `G4UIGAG::G4UIGAG()'"

 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 ]