I don't understand why master version of the Fortran code does not contain map related functions? It is almost like they were commented out or something during last generation.
However, regenerating puts them in, but fails to build. The problem is that the map functions are defined not in interface, but in MapFactory, and are simply extern in DTK_C_API.h`. The problem with that is that the generated Fortran code has to call them, but ends up with undefined reference.
I cannot simply make it depend on dtk_mapfactory as that already depends on dtk_interface and results in circular dependency.
The quick fix would be to maintain the current behavior, and do not generate the Fortran wrappers for Map functions. We have no current users of that anyway. @sslattery @dalg24 thoughts?
I don't understand why
master
version of the Fortran code does not contain map related functions? It is almost like they were commented out or something during last generation.However, regenerating puts them in, but fails to build. The problem is that the map functions are defined not in interface, but in
MapFactory
, and are simplyextern
in DTK_C_API.h`. The problem with that is that the generated Fortran code has to call them, but ends up with undefined reference.I cannot simply make it depend on
dtk_mapfactory
as that already depends ondtk_interface
and results in circular dependency.The quick fix would be to maintain the current behavior, and do not generate the Fortran wrappers for Map functions. We have no current users of that anyway. @sslattery @dalg24 thoughts?