I have repeatedly seen someone asking on the csdn Forum why my PPC/Smartphone SDK example is not compiled, and I have not made any changes! The subsequent errors are similar to lnk2019: unresolved external symbol _ gshandlercheck errors, and an error occurs, almost lost trust in Microsoft. :) Where is the cause? In fact, the msdn blog has a similar description of the information from: http://blogs.msdn.com/mgaur/archive/2006/12/21/lnk2019-unresolved-external-symbol-gshandlercheck.aspx
If you are interested, click here for details.
If you're a native C ++ smart device developer and recently
Downloaded vs2005 SP1 you may find that some of your existing programs
And some of the samples that ship with Windows Mobile SDK will fail
Compile. Even if you're able to make them compile they may issue
Warning like "Warning lnk 4099: pdb' libbmt. PDB was not found ".
This is because rvhas updated the compilers for vs2005 SP1 to be
On par with Wince 6 compilers which supported ded/GS support. So,
Projects that don't include libc/msvcrt or turn off/GS, you will run
Into these errors on pre-wince 6 platforms
As a workaround you shoshould explicitly include "libcmt. lib" in
List of additional libs to link against and turn off the linker warning
(/Nowarn: 4099 ).
It is clear that after vs2005 is installed with SP1, the link libcmt is not displayed. this error may occur if Lib is disabled or the/GS compilation option is not enabled. The solution is to explicitly link libcmt. lib. (Add libcmt. lib to linker => input => additional dependencies ).