error when using make to install aMCfast_validation

Asked by mohamed meziani kada on 2018-04-28

hi
when i try to install aMCfast_validation i receive this error after the instruction make:

g++ -O3 -fPIC -m64 -pthread -std=c++11 -m64 -I/usr/local/root/include -I/home/hep-ph/applgrid/include -pthread -std=c++11 -m64 -I/usr/local/root/include -O3 -I/usr/local/lhapdf/include -c aMCfast_validation.cxx
aMCfast_validation.cxx: In function ‘int main(int, char**)’:
aMCfast_validation.cxx:153:30: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
  bool gl = getline(madtd,line);
                              ^
aMCfast_validation.cxx:156:32: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
    bool gl = getline(madtd,line);
                                ^
aMCfast_validation.cxx:242:32: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
    bool gl = getline(madtd,line);
                                ^
aMCfast_validation.cxx:244:34: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
      bool gl = getline(madtd,line);
                                  ^
aMCfast_validation.cxx:252:32: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
    bool gl = getline(madtd,line);
                                ^
aMCfast_validation.cxx:254:34: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
      bool gl = getline(madtd,line);
                                  ^
aMCfast_validation.cxx:280:34: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
      bool gl = getline(madtd,line);
                                  ^
aMCfast_validation.cxx:282:36: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
        bool gl = getline(madtd,line);
                                    ^
aMCfast_validation.cxx:290:34: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
      bool gl = getline(madtd,line);
                                  ^
aMCfast_validation.cxx:292:36: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
        bool gl = getline(madtd,line);
                                    ^
aMCfast_validation.cxx:318:34: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
      bool gl = getline(madtd,line);
                                  ^
aMCfast_validation.cxx:320:36: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
        bool gl = getline(madtd,line);
                                    ^
aMCfast_validation.cxx:328:34: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
      bool gl = getline(madtd,line);
                                  ^
aMCfast_validation.cxx:330:36: error: cannot convert ‘std::basic_istream<char>’ to ‘bool’ in initialization
        bool gl = getline(madtd,line);
                                    ^
Makefile:53 : la recette pour la cible « aMCfast_validation.o » a échouée
make: *** [aMCfast_validation.o] Erreur 1

Can you help me please?

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Rikkert Frederix Edit question
Solved by:
Valerio Bertone
Solved:
2018-04-30
Last query:
2018-04-30
Last reply:
2018-04-30

Dear Mohamed,

thanks for reporting this problem.
I've just updated the validation code and uploaded on the aMCfast hepforge webpage.
Could you please try again to compile it? Let me know if you find any other problem.

Best regards,
Valerio

Dear Valerio

the compilation of the new version is correct. No errors were declared.

Thank you very much

Best regards

Mohamed

Thanks Valerio Bertone, that solved my question.