Error: reference to ‘Medium’ is ambiguous

Dear experts

I tried to rebuild my program which has succeeded many times, but after rebuild Garfield++ I got an error:

/group/had/muon/ssun/crt_simulation/time_resolution/diffusion_boundary/src/xt_simulation.cxx:112:9: error: reference to ‘Medium’ is ambiguous
  112 |         Medium* m_dummy;
      |         ^~~~~~
In file included from /group/had/muon/ICEDUST_externals/ICEDUST_externals_install/garfield_eca50bbce477905456dbe838aa19b08bb3880c27/include/Garfield/Medium.hh:19,
                 from /group/had/muon/ICEDUST_externals/ICEDUST_externals_install/garfield_eca50bbce477905456dbe838aa19b08bb3880c27/include/Garfield/MediumGas.hh:16,
                 from /group/had/muon/ICEDUST_externals/ICEDUST_externals_install/garfield_eca50bbce477905456dbe838aa19b08bb3880c27/include/Garfield/MediumMagboltz.hh:13,
                 from /group/had/muon/ssun/crt_simulation/time_resolution/diffusion_boundary/src/xt_simulation.hxx:14,
                 from /group/had/muon/ssun/crt_simulation/time_resolution/diffusion_boundary/src/xt_simulation.cxx:1:
/group/had/muon/ICEDUST_externals/ICEDUST_externals_install/garfield_eca50bbce477905456dbe838aa19b08bb3880c27/include/Garfield/Medium.hh:34:7: note: candidates are: ‘class Garfield::Medium’
   34 | class GARFIELD_CLASS_NAME(Medium) {
      |       ^~~~~~~~~~~~~~~~~~~
In file included from /group/had/muon/ssun/crt_simulation/time_resolution/diffusion_boundary/src/xt_simulation.hxx:18,
                 from /group/had/muon/ssun/crt_simulation/time_resolution/diffusion_boundary/src/xt_simulation.cxx:1:
/group/had/muon/ICEDUST_externals/ICEDUST_externals_install/garfield_eca50bbce477905456dbe838aa19b08bb3880c27/include/Garfield/ComponentAnalyticField.hh:13:7: note:                 ‘class Medium’
   13 | class Medium;
      |       ^~~~~~

I never get such error before. (I used the same version of Garfield++, but the system environment was different, and after environment changed I already rebuilt Garfield++), what should I do?

Hi,
hmm, I don’t think I’ve seen this error before. Can you clarify what you mean by “the system environment was different, and after environment changed I already rebuilt Garfield++”? Which environment are you using?