- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Developers
Acutally, I did migrate from Compaq Fortran to Intel Visual Fortran,
Original code is like as follows in compaq fortran
cmd = 'kalmansryu' call system(cmd)
but it made errors in intel visual fortran. (kalmansry is exe file that was made from Matlab)
How can I change 'call system'. Could you show me example?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See your Fortran documentation. You have to add USE IFPORT, and note the correct invocation of the SYSTEM function:
result = SYSTEM (string)
The returned value is an integer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear mecej4
I really appreciate your kind reply. Can IFPORT invoce external exe file?
I reviewed fortran documentation but I didn't find good example and expalanation. Can you teach me the how to use ifport in this case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
USE IFPORT is for the purpose of providing the correct interface to the SYSTEM() function. The Intel Fortran reference manual page for SYSTEM provides complete source code for an example of using this function.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page