|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Sat Mar 23, 2013 9:55 am Post subject: |
|
|
I forgot to mention that the Fortran compiler must use the common convention of passing hidden string length arguments at the end of the argument list. |
|
Back to top |
|
|
simon
Joined: 05 Jul 2006 Posts: 268
|
Posted: Sat Oct 24, 2015 2:25 am Post subject: |
|
|
I suspect I a bit out of my depth here, but I'm trying to link to the ClearWin+ DLL from NAGWare. I worked out that I had to compile the Fortran programs that are distributed in Silverfrost\FTN95\source64\ but soon got stuck with a compiler message complaining about inconsistent calls to some of the functions. For example, the following program generates a complaint about the second argument changing from integer to character, while similar complaints can be generated if the number of arguments changes:
Code: | PROGRAM p
USE clrwin$
INTEGER :: iw
iw=winio$('%bg&',1)
iw=winio$('%ca@','Title')
END PROGRAM p |
Can anybody suggest what I need to do to get the syntax of such functions recognised?
Also what should I do with the WINAPP statement? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Sat Oct 24, 2015 8:45 am Post subject: |
|
|
If the "complaining" is a warning then you can just ignore it. Otherwise you will need to find a way to get the compiler to ignore the "error".
You will have to leave out WINAPP. You can manage without it but to avoid seeing a DOS box on startup you will need to find out how to get the linker to mark the executable as a Windows executable rather than a Console executable. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|