| Summary: | geant-4.9.5_p01 makes g4py unable to be compiled | ||
|---|---|---|---|
| Product: | Environments | Reporter: | Benda Xu <heroxbd> |
| Component: | g4py | Assignee: | Koichi Murakami <Koichi.Murakami> |
| Status: | CLOSED FIXED | ||
| Severity: | critical | CC: | thomas.kittelmann |
| Priority: | P5 | ||
| Version: | 9.5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | The patch attached allows g4py compile in geant4.9.6.b01 | ||
|
Description
Benda Xu
2012-05-20 17:49:43 CEST
It seems that those class becomes boost::noncopyable. Therefore,
diff --git a/source/run/pyG4Run.cc b/source/run/pyG4Run.cc
index f633973..33ffb46 100644
--- a/source/run/pyG4Run.cc
+++ b/source/run/pyG4Run.cc
@@ -42,7 +42,7 @@ using namespace boost::python;
// ====================================================================
void export_G4Run()
{
- class_<G4Run, G4Run*>("G4Run", "run class")
+ class_<G4Run, boost::noncopyable>("G4Run", "run class")
// ---
.def("GetRunID", &G4Run::GetRunID)
.def("SetRunID", &G4Run::SetRunID)
May be sufficient. Will come up with a whole patch this week.
Created attachment 179 [details]
The patch attached allows g4py compile in geant4.9.6.b01
(In reply to comment #2) > Created attachment 179 [details] > The patch attached allows g4py compile in geant4.9.6.b01 Hello, Mikhail, Thanks a lot for the patch. I have also posted a message on the forum, http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1486.html Thanks. That was fixed as you shown. Was this patch really included in geant4.9.6.b01? I just had the same compilation errors there. Cheers, Thomas |