fatal error LNK1127

Newbie Member
26Mar2007,01:46   #1
Cara's Avatar
Hi

Can anyone please help me in this.I am new in MFC programming and I am confrunting with a problem.
I am using VC++ 6 and when I want to build the project it gives me this link error:
F:\Program Files\VC98\LIB\user32.lib : fatal error LNK1127: library is corrupt

I have searched in the msdn documentation and everything it is said in there is that I have to rebuild the library.
This thing is really driving me crazy... please help me

Thanks
Razvan
Go4Expert Founder
26Mar2007,07:18   #2
shabbir's Avatar
You probably need to re-install the VC as from the error it looks that your user32.lib file is corrupt.
Newbie Member
26Mar2007,19:14   #3
Cara's Avatar
I've already made this and the same error occurs and now gives the same error message but with mfc42d.lib not with user32.lib.And a strange thing is that win32 projects are working properly ,I can execute them.Should I replace the MFC library?
Go4Expert Founder
26Mar2007,19:16   #4
shabbir's Avatar
Quote:
Originally Posted by Cara
I've already made this and the same error occurs and now gives the same error message but with mfc42d.lib not with user32.lib.And a strange thing is that win32 projects are working properly ,I can execute them.Should I replace the MFC library?
Re-installing should have done that.
Newbie Member
26Mar2007,19:21   #5
Cara's Avatar
I will reinstall again , maybe it will work.

Thanks