Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-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!

*Eng-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.

Students Click Here

Link error to a Lib File in Fortran

Link error to a Lib File in Fortran

Link error to a Lib File in Fortran

I want to use some functions from ATLFOR.LIB. I added this lib file to my project and then build it. following error occur (If I add compiler's libraries, no such errors) :
--------------------Configuration: test11 - Win32 Debug--------------------
..\..\DF98\LIB\ATLFOR.LIB : fatal error LNK1136: invalid or corrupt file
Error executing link.exe.
--------------------Configuration: test11 - Win32 Debug--------------------Linking.....\..\DF98\LIB\ATLFOR.LIB : fatal error LNK1136: invalid or corrupt fileError executing link.exe.

I checked the error, it said that ATLFOR.lib file either has a corrupt header or is zero size or abnormally small. However, other guys use this files two years ago successfully.
Does anybody know how to fix this error?
Also, I want to read the content of library files like ATLFOR.LIB. Does anybody know how to read a file as ATLFOR.LIB? I donot have any fortran code to rebuild the lib again. If I can have access to the content to the library files, I can rebuild them.

RE: Link error to a Lib File in Fortran

At a guess, this was built with the 16bit MS compiler and you're trying to use with with a 32 bit compiler.

The ones built with the 16 bit MS compiler begin with F00D.

RE: Link error to a Lib File in Fortran

You do realize that libraries are compiled code, hence, they only contain binary executable?  There are, of course, decompilers, but they often do not get back to anything beyond a purely mechanistic abstraction of the original code.


FAQ731-376: Eng-Tips.com Forum Policies

RE: Link error to a Lib File in Fortran

Check with the guys who managed to use it - see what compiler they used.  At a guess it was MS 5.0 compiler which is 16 bit.

RE: Link error to a Lib File in Fortran

Thank you,xwb IRstuff.

I will do that. Have a good day.

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 Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

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

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close