- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there,
I am trying to compile a very old program I wrote about 20 years ago with ifort. Program has .for extension. Compile goes OK but when I try to link it with other two old library files (ext .lib and .obj) it says "fatal error LNK1107: invalid or corrupt file: cannot read at 0x2c5". I remember I used to compile this program with "for1" + "pass2" commands and I used to creat exe using mslink and I was using dos 2.1 in those days. After 20 years I need to get back to that program and start running it again on windows and I need to recompile it. Problem is the two .obj and .lib files are too old and company developed them is not exist anymore and I can't find the update for these files. I need to somehow use them or convert them to a comatible format readable with ifort. Any advice in this regard?
I am trying to compile a very old program I wrote about 20 years ago with ifort. Program has .for extension. Compile goes OK but when I try to link it with other two old library files (ext .lib and .obj) it says "fatal error LNK1107: invalid or corrupt file: cannot read at 0x2c5". I remember I used to compile this program with "for1" + "pass2" commands and I used to creat exe using mslink and I was using dos 2.1 in those days. After 20 years I need to get back to that program and start running it again on windows and I need to recompile it. Problem is the two .obj and .lib files are too old and company developed them is not exist anymore and I can't find the update for these files. I need to somehow use them or convert them to a comatible format readable with ifort. Any advice in this regard?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16-bit code. Won't work. If you can find a copy of MS DOS Fortran 5.1, you might be able to build a 16-bit application and run it under Windows XP or earlier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually, If he was using FOR1, PAS2, then it was probably one of the Microsoft
version 3.x compilers.
I know that version 3.31 still works under XP, although somewhere along the way I
had to change linkers, and for XP I had to start specifying a larger-than-default amount of
stack space for larger programs.
About the only good thing to say about 3.31 is that you could fit the entire compiler, linker, and
libraries on a single high-capacity diskette.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page