Calling C from Fortran
jon.gill_at_metoffice.gov.uk
Date: 03/24/05
- Next message: meek_at_skyway.usask.ca: "RE: read binary file question"
- Previous message: Jeffrey Katz: "Re: Upgrading an OLD (Fortran Powerstation 4.0) compiler"
- Next in thread: beliavsky_at_aol.com: "Re: Calling C from Fortran"
- Reply: beliavsky_at_aol.com: "Re: Calling C from Fortran"
- Reply: Walter Spector: "Re: Calling C from Fortran"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Mar 2005 04:41:41 -0800
Hi,
I'm new to Fortran and require some help understanding the capabilities
of Fortran when it comes to calling C/C++ functions. Specifically I
would like to make use of C's memory manipulation functions, in
partucular realloc, memcpy and memmove.
I have writen some F95 code which calls a C function, the function
allocated some mem and populates an array. However the memory is not
availabe to me back in teh Fortran calling function. Any attemp to
access the data result in a seg fault.
Any advice on how to do this would be welcome!
Cheers,
Jon
- Next message: meek_at_skyway.usask.ca: "RE: read binary file question"
- Previous message: Jeffrey Katz: "Re: Upgrading an OLD (Fortran Powerstation 4.0) compiler"
- Next in thread: beliavsky_at_aol.com: "Re: Calling C from Fortran"
- Reply: beliavsky_at_aol.com: "Re: Calling C from Fortran"
- Reply: Walter Spector: "Re: Calling C from Fortran"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|