I ran into this problem today while migrating a VS2008 solution to VS2010. The problem occurred in either of the following scenarios:
Look for an MSB8012 warnings. Likely you have a different output specification for the C++ output value and the Linker Output value.