GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Compilation errors in trunk release 28886
icon4.gif  Compilation errors in trunk release 28886 [message #19001] Tue, 09 February 2016 15:43 Go to previous message
Marcel Tiemens is currently offline  Marcel Tiemens
Messages: 47
Registered: January 2014
continuous participant
From: *kvi-cart.rug.nl
Hi all,

I just reinstalled FairRoot and PandaRoot, and during the compilation of PandaRoot, I encountered some failures that needed fixing before I could compile. Some of the things are really strange, and I would think that they would show up when whoever wrote the code tries to compile it him/herself. Here's the list:

PndMdtPointsToWaveform.h: Remove "#pragma once"
PndMdtWaveform.h: Remove "#pragma once"
PndMdtIGeometry.cxx: ofstream -> std::ofstream
PndMdtIGeometry.h: Make a lot of stuff (at least the structs) not private
PndMdtParamDigi.h: Make a lot of stuff (at least the structs) not private
PndEmcBump.h: Remove "#pragma once"
PndEmcRecoPar.h: Remove "#pragma once"
PndRichRecoTask.cxx: #include <db_cxx.h> not necessary (I didn't have the required library on my system, but it compiled when taking that part out without complaining, so I guess it's not used anywhere)
PndCAGlobalPerformance.cxx: line 148: sort -> std::sort
PndCAPerformance.cxx: ofstream -> std::ofstream, ifstream -> std::ifstream

I guess some compilers might not complain about the 'std' parts. As for the "#pragma once", I am not an expert, but as far as I understand you should not use it in combination with
#ifndef MYFILE_H
#define MYFILE_H
... contents of myfile.h
#endif /* !MYFILE_H */
 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New PandaRoot release jan16
Next Topic: [FIXED] MC matching
Goto Forum:
  


Current Time: Mon Oct 25 23:06:11 CEST 2021

Total time taken to generate the page: 0.02266 seconds