leecher1337 / ntvdmx64

Run Microsoft Windows NTVDM (DOS) on 64bit Editions
778 stars 80 forks source link

Fortran Error Under Win7x64 With NTVDMx64 #223

Open joeyc10 opened 1 year ago

joeyc10 commented 1 year ago

I have installed NTVDMx64 CCPU in my Windowsx64 O/S. All of my 16 bit binaries now run, as well as the MASM and LINK programs. But the Microsoft Fortran 4.0 program produces the following error --

[ E:\DECBAL>FL /FPi /c /Fs DECBAL.FOR Microsoft (R) FORTRAN Optimizing Compiler Version 4.00 Copyright (c) Microsoft Corp 1987. All rights reserved.

DECBAL.FOR fatal error C1042: cannot open compiler intermediate file - no such file or directory

error 2001: Null pointer assignment fatal error F1042: cannot open compiler intermediate file - no such file or directory ]

I have set up PATH, TMP, and LIB in the Environment Variables pointing to the FORTRAN folder as I have in Windowsx86 where every 16 bit program and binary runs. Any ideas?

leecher1337 commented 1 year ago

Hm, I cannot reproduce the problem. I installed FORTRAN 4.10 via SETUP.EXE and compiled a demo program (DEMO.FOR) just with FL DEMO.FOR and it compiled without any issues on Windows 7 x64 using NTVDMx64. Also set up TMP so point to C:\FORTRAN, my FORTRAN installation directory.

c:\FORTRAN>fl DEMOS\DEMO.FOR
Microsoft (R) FORTRAN Optimizing Compiler Version 4.10
Copyright (c) Microsoft Corp 1987, 1988. All rights reserved.

DEMOS\DEMO.FOR

Microsoft (R) Segmented-Executable Linker  Version 5.01.20
Copyright (C) Microsoft Corp 1984-1988.  All rights reserved.

Object Modules [.OBJ]: DEMO.OBJ
Run File [DEMO.EXE]: DEMO.EXE
List File [NUL.MAP]: NUL
Libraries [.LIB]:
Definitions File [NUL.DEF]: ;

Created DEMO.EXE also runs fine.

joeyc10 commented 1 year ago

Thanks for your reply. Did you install Fortran while under MS DOS or Windows? The same batch program compiles under Windows7x86 and I can't see what is missing.

leecher1337 commented 1 year ago

I installed with NTVDMx64 under Windows. Unpacked all installation disks, subst A: ., ran installer from A: and pointed all dst. directories to c:\FORTRAN and then let it build the library and stuff. Then made an env.bat that sets up environment variables before build and ran fl command, that's it.

Maybe problem is realted to your script? I just tried the simple fortran demo program that does sorting.

Hint: You can try to use Process Monitor and filter on ntvdm.exe to check what it tries to open and where it fails.