Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

LNK2011 -- but stdafx.obj *is* linked in

$
0
0

I have a customer w/ a large solution composed of many projects.  Several of the projects are getting LNK2011. When he compiles w/o using PCH, everything is fine, (but slow). 

Additionally, there is a LNK1120 message: "fatal error LNK1120: 1 unresolved externals", but no symbols are listed, and we don't get the LNK2011 message, so it makes no sense whatsoever.

This is an MFC project created w/ the MFC wizard, using PCH thru stdafx.cpp, (and stdafx.h).  The stdafx.obj file is on the linker command line.

Can anyone shed some light on what triggers LNK2011?  Ie: What makes the linker *think* the the PCH object is not included?


Viewing all articles
Browse latest Browse all 2763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>