- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the reply.
How do I find the default calling and naming convention used by Intel Fortran? I have looked around, but I can't find anything.
Thank you.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In brief, Intel Fortran uses the "Cdecl" calling convention with string argument lengths passed at the end of the explicit argument list.
There is also a useful article: Migrating from Compaq-Visual Fortran that is worthwhile to consult.
I hope that you are aware that mixing C++ and Fortran is much harder than mixing C and Fortran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have a Fortran Code and I'd like to build my application into an Interface with C++ (or C#) by using Visual Studio 2008. I want to display my results from Fortran in one window by using C++ or C#. My question is: Which one is the best to do the communication with I/O files from Fortran? (I use Intel Visual Fortran 11)
Thank you to all!
Carlos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ideally, C++ or C# would look the same on the Fortran side. I'd be surprised if anyone has tried this comparison back to back. I hope you don't make implementation decisions specific to these no longer supported releases of VS or ifort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Tim!
But I didn´t understand when you said "no longer supported...". Is there something particular point that should I do in relation to VS2008? My decision in using VS2008 is relationed about money (I can not do an upgrade at the moment), I've been used VS2008 with VFComposer XE2011 since a few years ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You referred to VS2008 and IFort XE2011. Current versions are VS2013 and IFort XE2015.
Your question "C++ or C#. My question is: Which one is the best to do the communication with I/O files from Fortran?" does not make sense to me. If by "I/O files from Fortran" you mean unformatted Fortran files or some other file format specific to Fortran, you cannot read them in C++ or C# without writing code to handle low level stuff such as record markers, record length prefixes and suffixes, etc. Normally, C/C# code would communicate with Fortran subprograms, not files. Those Fortran subprograms could, of course, do I/O with Fortran unformatted files.
If, on the other hand, you mean text files, then there is nothing to distinguish text files written by a Fortran program from a text file written by any program written in any language.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Files written and read with access='stream', as well as formatted sequential text files, are meant to be portable across programming languages.
If you can't afford VS2013 Professional, you probably qualify to use VS2013 Community, which works with ifort 2015 (unless possibly you have a discontinued version of Windows).

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page