Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
fatal error LNK1103: debugging information corrupt; recompile module
what is the cause of this error and how to solve it?

What I have tried:

fatal error LNK1103: debugging information corrupt; recompile module
Posted
Updated 18-Sep-17 23:56pm
Comments
Jochen Arndt 7-Sep-17 6:46am    
Which VS version?
Is the module build by you or is it a 3rd party module?
Has it been build with the same VS version as your project?

The error should vanish when building the module with the same VS version as the project.
Naveen_vemuri 7-Sep-17 7:59am    
it was written in VS2008 version.Now i am converting into VS2017 version and building using VS2017 verion.
Jochen Arndt 7-Sep-17 8:09am    
So you are trying to link a version build with 2008 with a 2017 project build?

Build all with 2017. Check also your project settings. Maybe you have still a path to the old module in your converted project so that a new module version is build but the old is still used to be linked from the project.
Naveen_vemuri 7-Sep-17 9:08am    
Still the problem is not resolved.Is there a way to find which old module is linking?i tried verbose also but didn't find anything.
Jochen Arndt 7-Sep-17 9:15am    
The error message contains the name of the module. Find that in the verbose output and check the path.

If that is wrong (path to old version), check your project settings (linker path settings and order and for modules specified with full path).

1 solution

Copy your original project to a new folder before trying the upgrade: then clean it to remove all intermediate files and do a full rebuild. Use "Build...Clean Solution", then delete the BIN and OBJ folders for each project in the solution and everything below them as well to be on the safe side. Then do a full Rebuild on the solution to see what happens. If you are referencing DLL files from other solutions as well, do the same there as well.
 
Share this answer
 
Comments
Naveen_vemuri 19-Sep-17 6:09am    
I tried it for so many times but not getting resolved.when i turn of "Properties->Linker->debugging->generate debugging info" to NO it is running fine,but i need pdb file too.Is there any other way we can solve this?
RedDk 19-Sep-17 12:25pm    
The .pdb file is the program debug data. This file is generated by the compiler/(linker(sp?)). There's a switch in the project properties (in C++ anyway; might not be there in C# ...) that forgoes output so presumeably no .pdb will make an appearance post rebuild.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900