Re: Fortran to C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vardhan, Sundara (GE Energy) wrote:

Hi All

I am using gcc 4.4.3 on Linux to compile 64-bit applications. I am
having issues when fortran callable c-functions have long parameters are
called by fortran programs, then dump core. Does gfortran on Linux pass
integer length parameters rather than long? I would very much appreciate
your input.

It helps if you give us an exact example (i.e., the Fortran and C source and the flags and command lines you used to compile and link those into one executable). For instance, I have no idea what you mean by "[d]oes gfortran [...] pass integer length parameters rather than long" - if you pass an integer on the Fortran side, expect an int * on the C side.

Hope this helps,

--
Toon Moene - e-mail: toon@xxxxxxxxx - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html#Fortran


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux