在Ubuntu VMware中安装GODDeSS软件包时出现Makefile错误2

时间:2020-05-30 05:29:27

标签: ubuntu makefile vmware

我刚接触Linux,正在安装GODDeSS软件包,它是VMware Ubuntu 20.04中GEANT4的扩展。 我遵循的说明在this中。编译并尝试使用make -j2 install安装后,出现错误:

/home/simulation/goddess/source/G4BasicObjects/G4PropertyFileReadInTools/src/Properties.cc:72:6: **error: no declaration matches ‘void Properties::parseTabular(std::ifstream*, std::string)’** 72 | void Properties::parseTabular(std::ifstream* in, std::string key) { | ^~~~~~~~~~ In file included from /home/simulation/goddess/source/G4BasicObjects/G4PropertyFileReadInTools/src/Properties.cc:9: /home/simulation/goddess/source/G4BasicObjects/G4PropertiesFileReadInTools/include/Properties.hh:62:7: note: candidate is: ‘void Properties::parseTabular(std::ifstream&, std::string)’ 62 | void parseTabular(std::ifstream& in, std::string key); | ^~~~~~~~~~~~ /home/simulation/goddess/source/G4BasicObjects/G4PropertiesFileReadInTools/include/Properties.hh:24:7: note: ‘class Properties’ defined here 24 | class Properties { | ^~~~~~~~~~ /home/simulation/goddess/source/G4BasicObjects/G4PropertyFileReadInTools/src/Properties.cc: In member function ‘bool Properties::load(std::string)’: /home/simulation/goddess/source/G4BasicObjects/G4PropertyFileReadInTools/src/Properties.cc:191:17: **error: cannot convert ‘std::ifstream*’ {aka ‘std::basic_ifstream<char>*’} to ‘std::ifstream&’ {aka ‘std::basic_ifstream<char>&’}** 191 | parseTabular(&in, result[1]); | ^~~ | | | std::ifstream* {aka std::basic_ifstream<char>*}

它击中了一个Google命中,它建议我将python兼容性升级到python 3.8.2,但它没有解决任何问题。我该如何解决这个错误?

编辑1:包含错误。

0 个答案:

没有答案
相关问题