Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I link static libraries from MS Fortran 5.1 in Compaq Visual Fortran 6.6. ?

Status
Not open for further replies.

D9305002

Programmer
Apr 14, 2016
3
TW
The version of Fortran that I use is Compaq Visual Fortran 6.6.

I have some Fortran static libraries (.LIB) from MS Fortran 5.1.

I add these static libraries to a main project in the visual development environment with the Add to Project. After I push Build button to link these libraries, an error message I got is shown below:

Linking...
..\for5\Windowm.lib : fatal error LNK1136: invalid or corrupt file
Error executing link.exe.

Can someone help me out?

Thank you for your help
 
A few questions

1) Is the CVF6.6 16-bit or 32-bit
2) Is the MS Fortran 5.1 16-bit or 32-bit
3) Do you have access to a MS Fortran 5.1 compiler
4) Do you have the sources for the static 5.1 library.
 
Thank you for your prompt reply

1) Is the CVF6.6 16-bit or 32-bit?
The CVF6.6 is 32-bit.

2) Is the MS Fortran 5.1 16-bit or 32-bit?
The MS Fortran 5.1 is 16-bit DOS

3) Do you have access to a MS Fortran 5.1 compiler?
I have tried it. I failed to have access to a MS Fortran 5.1 compiler.

4) Do you have the sources for the static 5.1 library.?
Unfortunately, I don’t.

Is it possible to link static libraries from MS Fortran 5.1 in Compaq Visual Fortran 6.6. ?

Thank you for your help
 
Unfortunately, it is not possible to link a 16-bit library to a 32-bit program.

What does the library do - maybe there is a 32-bit equivalent.
 
And when you go to a 64 bit version you are totally out of luck. The 16 bit apps are completely not supported. Almost all modern personal computers are going to 64 bit. find another version of the library (they will exist) and move on.

Bill
Lead Application Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top