Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fortran Error Under Win7x64 With NTVDMx64 #223

Open
joeyc10 opened this issue Apr 10, 2023 · 3 comments
Open

Fortran Error Under Win7x64 With NTVDMx64 #223

joeyc10 opened this issue Apr 10, 2023 · 3 comments

Comments

@joeyc10
Copy link

joeyc10 commented Apr 10, 2023

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
Copy link
Owner

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
Copy link
Author

joeyc10 commented Apr 11, 2023

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
Copy link
Owner

leecher1337 commented Apr 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants