-
June 16th, 2010, 04:29 AM
#1
c++ and fortran
Is it possible to call a fortran class from a visual c++ project?
Thanks
-
June 17th, 2010, 03:52 PM
#2
Re: c++ and fortran
I haven't written a line of Fortran in my life :-) and we don't do anything special in Visual Studio to enable this. But a Bing search reveals a few things that might help: http://www.bing.com/search?q=fortran...c=IE-SearchBox
Brian
-
June 18th, 2010, 12:37 PM
#3
Re: c++ and fortran
Yes, but you have to account for the Fortran name mangling and conventions directly when declaring the functions in a header.
Also, remember that Fortran is column-major.
-
June 18th, 2010, 06:15 PM
#4
Re: c++ and fortran
 Originally Posted by maskaseb
Is it possible to call a fortran class from a visual c++ project?
Thanks
Do you want to use classes (as in class objects in post Fortran 95) or simply call traditional Fortran subroutines? Calling Fortran subroutines is simple enough. I use the Intel Fortran compiler combined with Visual Studio for subroutine interfaces with the Fortran language.
- Chris
Last edited by dude_1967; June 18th, 2010 at 06:16 PM.
Reason: clarity
You're gonna go blind staring into that box all day.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|