Wednesday, December 28, 2011

Code Share: Patch link.exe to ignore LNK4099

By default, Visual Studio's link.exe does not let you ignore the linker warning LNK4099 (PDB file was not found).

This can be a real nuisance when you have to link with third party libraries that reference (but do not come with) PDBs. You can get hundreds of linker warnings that you have no way of getting rid of.

The only way I've found of fixing the problem is to patch link.exe so that it allows warning 4099 to be ignored. Luckily, it is not as scary as it sounds. You only need to patch a single location to remove 4099 from a list of warnings that cannot be ignored. An outline of the procedure can be found here.

Following my general philosophy to write-a-script-for-it I wrote a short ruby script that does the patching. I'm sharing it here for everybody that want to do voodoo on their link.exe and get rid of the warning.

2 comments:

We at Epson Printer Support have a breathtaking notoriety of being the acceptable Epson fix focus inside the market for providing our customers with the fine in superbness contributions. Our especially gifted experts can deal with any printer related issue and investigate it with snappy arrangements. We have a toll loosened helpline go +1-877-760-6111 at which you can name to explain your printer stresses and profit smooth and brisk answers from our specialists.epson printer setup