Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: There is no specific function for the generic 'optval' #1

Open
Beliavsky opened this issue Dec 8, 2021 · 1 comment
Open

Comments

@Beliavsky
Copy link

Thanks for the project. I think a version that specializes to real64 and int32 is a good idea.

c:\fortran\public_domain\github\dp-stdlib>fpm build --profile release
gives an error

 + gfortran -c .\.\src\stdlib_random.f90  -O3 -funroll-loops -Wimplicit-interface -fPIC -fmax-errors=1 -fcoarray=single -J build\gfortran_EDF3F128DBFCA123\stdlib -I build\gfortran_EDF3F128DBFCA123\stdlib  -o build\gfortran_EDF3F128DBFCA123\stdlib\src_stdlib_random.f90.o
.\.\src\stdlib_random.f90:115:14:

  115 |         res = optval(s, si)
      |              1
Error: There is no specific function for the generic 'optval' at (1)
compilation terminated due to -fmax-errors=1.
<ERROR> Compilation failed for object " src_stdlib_random.f90.o "
<ERROR>stopping due to failed compilation
STOP 1
@zoziha
Copy link
Owner

zoziha commented Dec 9, 2021

Thank you for your feedback, stdlib_random feedback on the relevant routines, I submitted an issue (fortran-lang/stdlib#592) in fortran-lang/stdlib.

And I've remodeled stdlib_random (see https://github.com/zoziha/dp-stdlib/tree/ci/src) myself, so it's not safe and I'll follow up with that issue (fortran-lang/stdlib#592)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants