HiFiLES / HiFiLES-solver

High Fidelity Large Eddy Simulation Solver
Other
174 stars 131 forks source link

reference to 'array' is ambiguous #138

Closed yeechin closed 8 years ago

yeechin commented 8 years ago

Hi there,

I am trying to install HiFiLES on my MacBook. However, it failed because reference to 'array' is ambiguous. It seems that the class 'array' defined in the code is somehow conflict with the struct array provided by gcc.

The location where the struct 'array' is defined on my computer is /opt/local/include/gcc6/c++/array:90:12: note : template<class _Tp, long unsigned int _Nm>array.

I think I may change the class 'array' to 'array_1" or some other name, but that would take a lot of work. Can any one tell me how to fix this problem elegantly?

Best Regards,

Yeechin

yeechin commented 8 years ago

Dear all,

The issue came with building the source with gcc 6.2.0. I think the problem lays on that the new gcc version includes the structure array provided by the compiler. Therefore, after I replaced gcc 6.2.0 with gcc 4.8.5, problem solved.

Best,

Yeechin