- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used CALL SYSTEM("dir")
it gives these error messages. Please give me help. I'm using visual Studio and Fortran Compiler 11.
error LNK2019: unresolved external symbol _SYSTEM@8 referenced in function _RESIST
fatal error LNK1120: 1 unresolved externals
Thank you.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
System is a function so it used as follows:
result = system("dir")
not "call"
Remember to USE IFPORT at the beginning of the subprogram in which SYSTEM is used.
For more information see the help documentation.
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apparently, you have set /iface:cvf (as would happen in automatic conversion of a CVF project). As Les said, USE IFPORT might help in flagging problems associated with that or using the non-standard system call syntax of some other compiler.
The Fortran standard version of this didn't become available until ifort 15.0.1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I corrected my mistake.
Thank you all for helping.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page