Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

GETLASTERRORQQ

Portability Function: Returns the last error set by a run-time procedure.

Module

USE IFPORT

result = GETLASTERRORQQ( )

Results

The result type is INTEGER(4). The result is the most recent error code generated by a run-time procedure.

Library functions that return a logical or integer value sometimes also provide an error code that identifies the cause of errors. GETLASTERRORQQ retrieves the most recent error message. The error constants are defined in IFPORT.F90. The following table shows some library routines and the errors each routine produces:

Library routine

Errors produced

BEEPQQ

no error

BSEARCHQQ

ERR$INVAL

CHANGEDIRQQ

ERR$NOMEM, ERR$NOENT

CHANGEDRIVEQQ

ERR$INVAL, ERR$NOENT

COMMITQQ

ERR$BADF