View previous topic :: View next topic |
Author |
Message |
simon
Joined: 05 Jul 2006 Posts: 276
|
Posted: Thu Nov 28, 2024 9:14 pm Post subject: winio@ failed to match format length |
|
|
When running a ClearWin+ application with a third-party compiler I am getting the following message:
Quote: | winio@ failed to match format length.
Do you want to continue? |
If I select "Yes" the program apparently proceeds without any obvious problem. The same program runs without a message using FTN95.
It would take me a while to try to isolate this problem in an example program, so I am wondering whether anyone knows, simply from the error message, what may be causing it. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8062 Location: Salford, UK
|
Posted: Fri Nov 29, 2024 9:09 am Post subject: |
|
|
winio@ calls have varying numbers of arguments which is non-standard for Fortran.
The FTN95 compiler passes an extra argument to handle this but this argument is not provided by third party compilers.
For third party compilers winio$ provides a double pass through the arguments in order to construct the information that would otherwise be provided by FTN95. If the first of these passes fails then you get this error report.
If you do your development using FTN95 then this error report ought to be replaced with a meaningful error about an argument miss-match.
Failing that, %za and %zz provide an alternative way to start and terminate the format string and this may provide a way to indentify the problem. See the help file FTN95.chm under "ClearWin+" then "Compiling and Linking" then "Using ClearWin+ with third party compilers". |
|
Back to top |
|
|
|