Message: Re: compilation error in OpenInventor using gcc version 3.4.5 20051201 (Red Hat 3.4.5-2) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: compilation error in OpenInventor using gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)  

Forum: Documentation and Examples
Re: Question compilation error in OpenInventor using gcc version 3.4.5 20051201 (Red Hat 3.4.5-2) (dusan)
Date: 22 Jun, 2006
From: Kazuyoshi Furutaka <furutaka.kazuyoshi@jaea.go.jp>

----Next_Part(Thu_Jun_22_17_20_27_2006_946)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Dusan,



From: "Dusan" <bruncko@saske.sk>
Subject: compilation error in OpenInventor using gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
Date: Thu, 22 Jun 2006 00:57:46 -0700

> I am using geant4.8.0.p01 on SLC4  (2.6.9-34.0.1.EL.cern) and gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
> with libCLHEP-1.9.2.2.
> When I make compilation in visualization/OpenInventor, I have following message:
> 
> Compiling SoCounterAction.cc ...
> Compiling SoDetectorTreeKit.cc ...
> src/SoDetectorTreeKit.cc:64: error: extra `;'
> make: *** [/kosice/geant4/releases/specific/slc3_gcc323/geant4.8.0.p01/tmp/Linux-g++/G4OpenInventor/SoDetectorTreeKit.o] Error 1
> 
> with compat-gcc-32-c++-3.2.3-47.3.i386  compilation is o.k.

The attached patch works for me (Fedora Core 5, G4.8.0.p01).

Kazuyoshi
--
Kazuyoshi Furutaka
furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp


----Next_Part(Thu_Jun_22_17_20_27_2006_946)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: SoDetectorTreeKit.cc.diff
Content-Disposition: inline; filename="SoDetectorTreeKit.cc.diff"

--- SoDetectorTreeKit.cc.orig	2005-10-17 16:21:03.000000000 +0900
+++ SoDetectorTreeKit.cc	2005-12-19 13:10:14.000000000 +0900
@@ -61,7 +61,9 @@
 #include <math.h>
 
 // This statement is required
-SO_KIT_SOURCE(SoDetectorTreeKit) 
+SO_NODE_SOURCE(SoDetectorTreeKit)
+SO__KIT_CATALOG_VARS(SoDetectorTreeKit);
+SO__KIT_CATALOG_METHODS(SoDetectorTreeKit)
  
 // initClass
 void SoDetectorTreeKit::initClass(){

----Next_Part(Thu_Jun_22_17_20_27_2006_946)----

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

 Add Message Add Message
to: "Re: compilation error in OpenInventor using gcc version 3.4.5 20051201 (Red Hat 3.4.5-2) "

 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 ]