locked
How do I suppress LNK4099 warning on format.pdb

    Question

  • I'm trying to fix/suppress warning messages coming from VS2010 when compiling a profiler for he CLR.  The linker complains:

    warning LNK4099: PDB 'format.pdb' was not found with 'format.lib(format.obj)' or at ...

    How do I suppress this message in particular?

    Why isn't format.pdb shipped with format.obj? (It implements functions to manipulate the CLR IL, such as SectEH_EHClause)

    Friday, February 10, 2012 6:31 PM

Answers

All replies

    • Marked as answer by Paul Zhou Thursday, February 23, 2012 9:39 AM
    Sunday, February 12, 2012 3:50 PM
  • Am I to understand that Microsoft recommends that developers ignore linker warnings?

    I am willing to go through quite a bit of effort to suppress a linker warning that I can't fix because as soon as you have one linker warning that is always present people start ignoring them all.  This gets compounded when you have many projects all with the same linker warning that can't be fixed or suppressed because on a full rebuild you end up with a large list of warnings and people don't go through and actually look at them.

    Can you please provide/suggest a workaround that would allow us (developers) to do something that makes such warnings go away?  Perhaps some way to generate a fake PDB file for format.lib (assuming Microsoft won't give us a real one) or give us information on how to actually suppress it in the IDE?

    I am on Windows 8 using Visual Studio 2012 and building a CLR profiler that links to format.pdb.

    Friday, November 30, 2012 8:47 PM