View previous topic :: View next topic |
Author |
Message |
yujsg
Joined: 20 Jun 2007 Posts: 15
|
Posted: Tue Oct 02, 2007 7:49 am Post subject: Reporting a bug in Win32 VC interoperability example#2 |
|
|
In folder Code: | C:\Program Files\Silverfrost\FTN95\demo\win32\visualcinteroperability2\vcproject1 |
File "vcproject1.cpp", line 81, Code: | extern "C" DllExport void _FunctionArgumentsReference(int *i, double *x) | the type of *x should be changed to "float", which corresponds to "real" in FORTRAN. Otherwise, the program will not run as intended.
Comparison of FORTRAN and C/C++ datatypes:
http://www.yolinux.com/TUTORIALS/LinuxTutorialMixingFortranAndC.html |
|
Back to top |
|
|
Andrew
Joined: 09 Sep 2004 Posts: 232 Location: Frankfurt, Germany
|
Posted: Tue Oct 09, 2007 9:57 pm Post subject: |
|
|
Yes you are right, double would correspond to REAL*8, which is not used in this example. The example has been changed to float. |
|
Back to top |
|
|
|