Message: method overrides in G4VSolid and G4BooleanSolid (compiler error) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question method overrides in G4VSolid and G4BooleanSolid (compiler error) 

Keywords: compiler, linker, method override, G4VSolid, G4BooleanSolid
Forum: Geometry
Date: 22 Aug, 2005
From: Christine Dumoulin <dumoulic@research.ge.com>

Hello,
I've added a couple of methods to the G4VSolid class of my copy of 
GEANT 4.7.1; these methods are overridden in the G4BooleanSolid class.
When I try to compile a program that uses these classes, however, the 
compiler assigns the same label to each new method and its override, 
resulting in a 'multiple definitions' error message from the linker.  The 
pre-existing methods compile perfectly well.

I've kept the form of similar pre-existing methods and overrides, and I've 
also tried deleting and re-compiling the GEANT libraries on my system.  
I'm using LINUX Red Hat and my compiler is gcc 3.2.3.
Any suggestions?

Thanks very much,
Christine Dumoulin

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

1 None: Re: method overrides in G4VSolid and G4BooleanSolid (compiler error)   (Christine Dumoulin - 23 Aug, 2005)
 Add Message Add Message
to: "method overrides in G4VSolid and G4BooleanSolid (compiler error)"

 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 ]