Hello, several years ago my Fortran 77 programs runs on a convex under UNIX with use of NAG Fortran Mark 14. Two libraries were linked to generate the executable. The NAG-Library and a self created library. The self created library includs many subroutines, which used subroutines from the NAG Library. It has been worked very well.
Now I want to restart my 'old' programs again. But now I use a Notebook (AMD-Prozessor), the command line version of the FTN95 compiler and a NAG Fortran library specially for this enviroment.
I use this batch file under DOS: @echo off rem Batch Datei rem Compilieren: FTN95 *.f95 /import_lib 'C:\Program Files\NAG\FL21\fldll214zl\bin\FLDLL214Z_nag.dll' rem Linken: SLINK *.obj 'C:\DISS\lib_dir\mslib.lib' 'C:\Program Files\NAG\FL21\fldll214zl\bin\FLDLL214Z_nag.dll' -FILE:mainew rem Löschen der Obj's: del *.obj rem RUN Excecutable: mainew.exe
Compiling and Linking works very nice. But I became the following runtime error:
'Access Violation' 'The instruction at adress 036e6dd8 attemped to write to location 00000002' ' .....'
This runtime error if only occurred, when the program used a subroutine of the self created library an these subrountine called a subroutine form NAG library. If I change my programs so that the subroutine of the NAG library is directly called from the program then no error is indicated.
I want use again the structure with the two libraries, because it is an very complex program. What can I do with the libraries so that they work like serveral years ago.
Thanks for any Information
Martin[/img]