I’d like to play with
sort_index in particular, for now) but I cannot get this “hello world” program to compile:
program test_sort_index use stdlib_kinds, only: dp use stdlib_sorting, only: sort_index, int_size implicit none integer(int_size), allocatable :: idx(:) real(dp), parameter :: test(6) = [0.8_dp, 0.4_dp, 42._dp, 89._dp, 546._dp, -5.23_dp] call sort_index(test, idx) end program test_sort_index
$ gfortran-10 --version GNU Fortran (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
call sort_index(test, idx) 1 Error: There is no specific subroutine for the generic ‘sort_index’ at (1)
I have the latest version of stdlib (to the last commit) from GitHub built with
cmake. If I open the generated
stdlib_sorting.f90 I can clearly see the public interface of
sort_index that includes the
module subroutine dp_sort_index with the right signature that I need. I have copied all
stdlib module and submodule files and the generated static library in the same directory of the test program above to rule out any accessibility issues.
Before opening an issue, I’d like to understand if I’m doing something wrong.