forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reporting a bug in Win32 VC interoperability example#2

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
yujsg



Joined: 20 Jun 2007
Posts: 15

PostPosted: Tue Oct 02, 2007 7:49 am    Post subject: Reporting a bug in Win32 VC interoperability example#2 Reply with quote

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
View user's profile Send private message
Andrew



Joined: 09 Sep 2004
Posts: 232
Location: Frankfurt, Germany

PostPosted: Tue Oct 09, 2007 9:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group