title: Strange link error while rebuilding in visual Studio 2012
body: <p>I have a very strange problem. I have a project in VS2012 that links statically with another lib.
  If I build project everything is fine.
  However, if I REBUILD the project it will fail with link problems.
  The lib is compiled, I do not compile it during the build.
  <strong>It is no difference if I clean everything or building/rebuilding on top of previous build.
  Build works, Rebuild - not!</strong></p>
  
  <p>Can anyone give me at least a clue - what different in those 2 commands? I do not even know how to start investigate the problem.</p>
  
  <p><strong>Supplemental:</strong></p>
  
  <p>To all the people that answered - You are trying to explain me the difference between the build and rebuild. Thank you, but I know it. You ignore the fact that I explained before:</p>
  
  <p>I can completely clean previous results, delete OutDir, delete IntDir, delete everything produced by the compilation. still - Build work, Rebuild not.</p>
  
  <p>In the explained above case - what is the difference between build and rebuild if you build the first time??</p>
  
  <p>The reason I did not posted errors is that those are simply link errors telling me .lib is missing. While it is clearly not.</p>
  
  <p><strong>Here is the example:</strong></p>
  
  <p>1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sal.h(2872): warning RC4005: '_<em>useHeader' : redefinition
  1><br>
  1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sal.h(2882): warning RC4005: '</em>_on_failure' : redefinition
  1><br>
  1>     Creating library D:\p4client\ProAudio\dev_main\ProAudio\XPlatform..\VisualStudioBuildProducts\WaveShell-DAE\Win32\Debug\Products\WaveShell-DAE.lib and object D:\p4client\ProAudio\dev_main\ProAudio\XPlatform..\VisualStudioBuildProducts\WaveShell-DAE\Win32\Debug\Products\WaveShell-DAE.exp
  1>DefaultSwap.obj : error LNK2019: unresolved external symbol _ASI_UnregisterCustomByteSwapper@4 referenced in function _RemoveByteSwapper
  1>DefaultSwap.obj : error LNK2019: unresolved external symbol _ASI_RegisterCustomByteSwapper@8 referenced in function _RegisterByteSwapper
  1>PlugInLib.lib(PlugInUtils.obj) : error LNK2001: unresolved external symbol _<em>imp</em>_FicGestalt@8
  1>PlugInLib.lib(CDSPProcess.obj) : error LNK2001: unresolved external symbol _<em>imp</em>_FicGestalt@8
  1>PlugInLib.lib(CAdaptorPlugIn.obj) : error LNK2001: unresolved external symbol _<em>imp</em>_FicGestalt@8
  1>CShellProcessGroup.obj : error LNK2019: unresolved external symbol _<em>imp</em>_FicGestalt@8 referenced in function "public: __thiscall CShellProcessGroup::CShellProcessGroup(void)" (??0CShellProcessGroup@@QAE@XZ)
  1>CEffectTypeRTAS.obj : error LNK2001: unresolved external symbol _<em>imp</em>_FicGestalt@8
  1>PlugInLib.lib(CProcessGroupInterface.obj) : error LNK2001: unresolved external symbol _<em>imp</em>_FicGestalt@8
  1>PlugInLib.lib(CProcessGroup.obj) : error LNK2001: unresolved external symbol _<em>imp</em>_FicGestalt@8</p>
  
  <p>Maybe it will help to know that while running <strong>Build</strong> (Not rebuild) I will get the following warnings:</p>
  
  <p>1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sal.h(2872): warning RC4005: '_<em>useHeader' : redefinition
  1><br>
  1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sal.h(2882): warning RC4005: '</em>_on_failure' : redefinition
  1><br>
  1>     Creating library D:\p4client\ProAudio\dev_main\ProAudio\XPlatform..\VisualStudioBuildProducts\WaveShell-DAE\Win32\Debug\Products\WaveShell-DAE.lib and object D:\p4client\ProAudio\dev_main\ProAudio\XPlatform..\VisualStudioBuildProducts\WaveShell-DAE\Win32\Debug\Products\WaveShell-DAE.exp
  1>PlugInLib.lib(C321ChipDSP.obj) : warning LNK4099: PDB 'vc110_ib_2.pdb' was not found with 'PlugInLib.lib(C321ChipDSP.obj)' or at 'D:\p4client\ProAudio\dev_main\ProAudio\VisualStudioBuildProducts\WaveShell-DAE\Win32\Debug\vc110_ib_2.pdb'; linking object as if no debug info
  1>PlugInLib.lib(CDSP.obj) : warning LNK4099: PDB 'vc110_ib_3.pdb' was not found with 'PlugInLib.lib(CDSP.obj)' or at 'D:\p4client\ProAudio\dev_main\ProAudio\VisualStudioBuildProducts\WaveShell-DAE\Win32\Debug\vc110_ib_3.pdb'; linking object as if no debug info
  1>PlugInLib.lib(CDSPUtils.obj) : warning LNK4099: PDB 'vc110_ib_4.pdb' was not found with 'PlugInLib.lib(CDSPUtils.obj)' or at 'D:\p4client\ProAudio\dev_main\ProAudio\VisualStudioBuildProducts\WaveShell-DAE\Win32\Debug\vc110_ib_4.pdb'; linking object as if no debug info</p>
  
  <p>Thanks!</p>