w prefix in fortran bindings
![](https://secure.gravatar.com/avatar/eaa2cd9096f3200545585814052a475e.jpg?s=120&d=mm&r=g)
Hi all. I've been backing lately on the LAPACK bindings and there's something I don't understand . Sometimes the fortranname statement is prefixed with `w`, like in fortranname w<prefix2c>dotc Someone could tell me why the w is needed? Thanks, Fabian
![](https://secure.gravatar.com/avatar/da3a0a1942fbdc5ee9a9b8115ac5dae7.jpg?s=120&d=mm&r=g)
Thu, 05 May 2011 14:34:19 +0200, Fabian Pedregosa wrote:
I've been backing lately on the LAPACK bindings and there's something I don't understand . Sometimes the fortranname statement is prefixed with `w`, like in
fortranname w<prefix2c>dotc
Someone could tell me why the w is needed?
It's because on some platforms there are difficulties in calling Fortran functions (as opposed to subroutines) from C, so we need subroutine wrappers for the functions. You can find the w* subroutines implemented in some *.f file. Pauli
participants (2)
-
Fabian Pedregosa
-
Pauli Virtanen