Library Corrupt Error

2k Views Asked by At

I have written a program from a book on visual c++. I am using its older version 6.0 but visual c++ 6.0 gives me the following error

"C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcpd.lib : 
    fatal error LNK1127: library is corrupt
Error executing link.exe." 

Can any one can explain this or offer any solution?

2

There are 2 best solutions below

0
On

When you start to program C++ guided by a book, choose anything except something that needs this old compiler. The newer Visual Studio Express versions can be downloaded and use without any cost.

With your VC++ 6.0 approach you would be out-of-date immediately.

1
On

Clearly the file got corrupted. Get your machine stable again, focus on the hard drive. Ask questions about that at superuser.com. Then reinstall VS6. If the book gives sample code that works on VS6 then you really should consider upgrading the book.