Compilation errors in trunk release 28886 [message #19001] |
Tue, 09 February 2016 15:43 |
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 */
|
|
|
|
Re: Compilation errors in trunk release 28886 [message #19003 is a reply to message #19001] |
Tue, 09 February 2016 15:57 |
Dominik Steinschaden
Messages: 28 Registered: April 2015
|
continuous participant |
From: *smi.oeaw.ac.at
|
|
I was just updating my local trunk Version also and I'm now also not able to compile anymore.
But the only Problem seems to be
rich/PndRichRecoTask.cxx:16:20: fatal error: db_cxx.h: No such file or directory
#include <db_cxx.h>
^
compilation terminated.
make[2]: *** [rich/CMakeFiles/Rich.dir/PndRichRecoTask.cxx.o] Error 1
make[1]: *** [rich/CMakeFiles/Rich.dir/all] Error 2
make: *** [all] Error 2
The other errors are not reproduceable. at least not for me
so the other errors are maybe only occuring when using a specific OS or compiler
regards Dominik
[Updated on: Tue, 09 February 2016 15:59] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|