View previous topic :: View next topic |
Author |
Message |
Zahid
Joined: 03 Feb 2005 Posts: 26
|
Posted: Tue Sep 06, 2005 8:25 am Post subject: compiling and linking Toolmaster (uniras) library programs |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8084 Location: Salford, UK
|
Posted: Wed Sep 07, 2005 12:59 am Post subject: compiling and linking Toolmaster (uniras) library programs |
|
|
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 |
|
|
|