[Spglib-users] spglib_f08.f90 fails to compile with gfortran earlier than 4.7
Brought to you by:
atztogo
From: Keith R. <kr...@gm...> - 2014-04-03 09:13:54
|
I found that the Fortran interface spglib_f08.f90 fails to compile using gfortran 4.6.x or earlier. Source/Utility/spglib_f08.f90:360.34: import SpglibDataset_c 1 Error: Cannot IMPORT 'spglibdataset_c' from host scoping unit at (1) - does not exist. ... This appears to be a bug in the compiler, and later versions work fine. However there is a simple workaround - move the definition of the SpglibDataset_c type to the top level of the module. Then it works as far back as gfortran 4.3. I hope this is useful. Keith Refson |