Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28991 Discussions

How to link old .obj and .lib files ?

steve_rb
Beginner
636 Views
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?
0 Kudos
2 Replies
Steven_L_Intel1
Employee
636 Views
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.
0 Kudos
jparsly1
New Contributor I
636 Views

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.

0 Kudos
Reply