Quantcast
Viewing all articles
Browse latest Browse all 3270

Call Fortran from C

 

Hi, I have many codes in Fortran and I wrapped it by C to create .dylib in Mac and I can call it from Ruby On Rails. 

Recently we have lots of trouble with Mac Server and we want to transfer everything to Linux, but the Fortran code

will not compile in Linux, the error message is !!DEC$ ATTRIBUTES DLLEXPORT, C :: addsize is not supported

in this platform. Is there a way to get around this without having to rewrite Fortran codes using  ISO_C_BINDING?

Thanks!

Liz

 

 

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>