dr4kan / EcoMug

Efficient COsmic MUon Generator
GNU General Public License v3.0
17 stars 6 forks source link

‘std::function’ issue on geant4 virtual machine version 11.0 #1

Closed LasDes closed 1 year ago

LasDes commented 2 years ago

I am trying to use EcoMug.h in the geant4 virtual machine v11.0 from "Geant4 Virtual Machine – G4VM with RockyLinux 8.5 Geant4 " and I am getting this error using c++ 11

home/local1/Desktop/t4_rpc/include/EcoMug.h:100:8: error: ‘function’ in namespace ‘std’ does not name a template type std::function<double(double, double)> mFunc;

/home/local1/Desktop/t4_rpc/include/EcoMug.h:100:3: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’? /home/local1/Desktop/t4_rpc/include/EcoMug.h:29:1: +#include <functional>

dr4kan commented 2 years ago

Hi,

thank you for pointing it out. Can you please try version 1.3.1?

Cheers, Davide.

LasDes commented 1 year ago

sorry for the delayed response, but i fixed. The solution was to download the 1.3.1 version and add #include "functional" into the header inside Ecomug.h