-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Implement fcall #2167
Comments
+1 |
One problem is that not all Fortran compilers use the same name mangling on a given platform. The most common culprit in practice here is probably Windows, where Intel Fortran defaults to all uppercase (probably because this was the convention established on Windows by Digital Visual Fortran years ago) while gfortran uses lowercase+underscore. |
Yeah, Some libraries will export Fortran symbols available under multiple names to try to mitigate this. For example every function in |
Dup of #38872 |
Per-Olof Persson made a great suggestion - have an
fcall
, likeccall
, which does not require the underscores in the function name, and we can even get rid of all the ampersands. Perhaps, we can also allow specifying arrays rather than pointers in the function signatures.The text was updated successfully, but these errors were encountered: