Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

passing fortran pointers to c++

MWind2
New Contributor I
97 Views

I had worked out a cludge more than 10 years ago that I was trying to understand the seemingly different dereferencing still today. Why does a Fortran LOC passed to a CPP function require two dereferences to get the value?

0 Kudos
1 Reply
FortranFan
Honored Contributor II
97 Views

@mwindham,

See some threads:

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/699941

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/815889

which may point you toward standard options in Fortran toward interoperability with a companion C processor you can use in your C++ code rather than a vendor specific solution.

Reply