Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

passing fortran pointers to c++

MWind2
New Contributor III
139 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
139 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