xxfxxf / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 0 forks source link

Linking to libcef_dll_wrapper.lib produces many warnings in Visual Studio #385

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Linking to the libcef_dll_wrapper library that comes with binary releases 
causes many linker warnings of type LNK4099.

The warning occurs because libcef_dll_wrapper is compiled using the /Zi flag, 
which means the linker expects to find debug symbols in a separate pdb file, 
however the pdb file isn't shipped as part of a binary release.
The reason this is especially annoying is that Visual Studio doesn't allow you 
to suppress LNK4099 warnings.

One way to fix the warning would be to compile libcef_dll_wrapper using the /Z7 
compiler flag, which embeds the debug information into the .lib file. /Z7 is 
incompatible with the minimal rebuild feature, but cef doesn't use this feature 
anyway.

MSDN says /Z7 can be a could option for library distributors 
(http://msdn.microsoft.com/en-us/library/958x11bc(v=vs.80).aspx)

I've attached a patch that would set the appropriate flag if you're interested.

Note: libcef.lib is an import library, so doesn't have this issue.

Original issue reported on code.google.com by philgates@gmail.com on 21 Oct 2011 at 12:15

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the info. This is no longer an issue with binary release 306 which 
includes libcef_dll_wrapper in source code form.

Original comment by magreenb...@gmail.com on 21 Oct 2011 at 1:46