[CMake] mystery VS warning LNK4204

Bill Hoffman bill.hoffman at kitware.com
Sat Nov 29 14:28:06 EST 2008


So, two debug build CMake dashboards are getting these odd warnings:

VS 70 with IDE build:

http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=219420

Linking...

libtar.obj : warning LNK4204: 'c:\dashboards\my 
tests\cmakevs70\bin\debug\tartest.pdb' is missing debugging information 
for referencing module; linking object as if no debug info


VS 80 with nmake:
http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=219712

Linking C executable ..\..\bin\LIBCURL.exe

curltest.obj : warning LNK4204: 
'e:\dashboards\cmake-build\bin\libcurl.pdb' is missing debugging 
information for referencing module; linking object as if no debug info


The VS 70 machine is at Kitware.  If I go on to the machine and 
recompile libtar.obj, then the warning goes away.  I am unable to 
reproduce the problem on other machines.    I found this on a blog:

http://cubicspot.blogspot.com/2008/03/solving-pesky-lnk4204-warnings.html

But that does not seem to be the same cause.  The names are unique. 
This shoes up when a C based executable links to a static library.  It 
only happens for the C only stuff.  It happens with two versions of MS 
compiler (vs70 and vs80), and it in one case it is with nmake and the 
other it is with the IDE.

Any ideas?

Thanks.

-Bill



More information about the CMake mailing list