Silverfrost Forums

Welcome to our forums

winio@ failed to match format length

28 Nov 2024 8:14 #31727

When running a ClearWin+ application with a third-party compiler I am getting the following message:

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.

29 Nov 2024 8:09 #31728

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'.

Please login to reply.