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 

compiling and linking Toolmaster (uniras) library programs

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Zahid



Joined: 03 Feb 2005
Posts: 26

PostPosted: Tue Sep 06, 2005 8:25 am    Post subject: compiling and linking Toolmaster (uniras) library programs Reply with quote

When I compile a Toolmaster library example fortran program with FTN95 v. 4.8 through Plato 3, having specified the import libraries option to point to the appropriate dll in the Toolmaster binaries, the compilation fails with the error message:

fatal 123 - Invalid machine instruction generated

The Fortran statement at which the failure is flagged is quite simple and harmless, and cannot be causing this failure.

If I try compiling without using the import libraries option the compilation is successful, but of course the program fails to run.

A colleague who supports the Toolmaster library at our site informs me that this used to work some time ago in previous versions of FTN95 through Plato2.

Any advice or tips will be appreciated.


Zahid Aziz
The University of Nottingham
Nottingham
U.K.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Sep 07, 2005 12:59 am    Post subject: compiling and linking Toolmaster (uniras) library programs Reply with quote

I assume that the DLL uses STDCALL and that you are using /IMPORT_LIB <dllname> from the FTN95 command line. This corresponds to creating a Reference in a Plato3 project and setting the STDCALL property in the Properties of the Reference.

If the fault occurs at a point in your code then it is sometimes possible to fix the problem by modifying the Fortran.

I do not have Toolmaster and it looks like it is not free so posting your program is not likely to help me to locate the problem.

Regards
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 -> General All times are GMT + 1 Hour
Page 1 of 1

 
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