Silverfrost Forums

Welcome to our forums

compiling and linking Toolmaster (uniras) library programs

6 Sep 2005 7:25 #319

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.

6 Sep 2005 11:59 #320

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

Please login to reply.