forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Converting 32 bit to 64 bit
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sat Mar 23, 2013 9:55 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
simon



Joined: 05 Jul 2006
Posts: 268

PostPosted: Sat Oct 24, 2015 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sat Oct 24, 2015 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
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