INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

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

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

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

(OP)
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

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

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.

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

(OP)
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

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

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.

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

(OP)
Thank you for your help

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

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close