c++ and fortran
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: c++ and fortran

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    3

    c++ and fortran

    Is it possible to call a fortran class from a visual c++ project?
    Thanks
    Share on Google+

  2. #2
    Join Date
    Jun 2010
    Posts
    9

    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
    Share on Google+

  3. #3
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Fairfax, VA
    Posts
    10,888

    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.
    Share on Google+

  4. #4
    Join Date
    Jun 2002
    Location
    Germany
    Posts
    1,557

    Re: c++ and fortran

    Quote Originally Posted by maskaseb View Post
    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.
    Share on Google+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center