[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

comctl32.lib : fatal error LNK1136: invalid or corrupt file - Why?

Please help - just can't figure this out.

I get this error when I link in the comctl32.lib.
I am using VC++ 6 with Windows XP and assume that there
is a compatibility issue. I have tried lots of different
versionbs of comctl32.lib that I have found in...

C:\apps\Microsoft Platform SDK\Lib
and the VC++ one

But no luck. Can't find any references to such a problem
on the internet. Am I the only one!

Help would be much appreciated.
  • 2
1 Solution
What specific error is being displayed??
At what time?? runtime or link time??
It can't be an XP-compatibility issue becasue the program never gets executed.  

>>I have tried lots of different versionbs of comctl32.lib
Perhaps you just *thought* you tried these, but the same old (actually corrupt) file is getting read each time.  To avoid this, delete or rename all copies of comctl32.lib and try to rebuild.

One other (longshot)  turn off any anti-virus program that is running.
-- Dan
marco_christoforouAuthor Commented:
Thanks people I have found the answer. Much to my dismay I really did have a corrupt file!!! I got a friend to send me his version. Can't imagine how this happened.

Thanks anyway.
Exactly as I suspected.  -- Dan

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now