Windows Mobile compilation error parsing: lnk2019: unresolved external symbol _ gshandlercheck

Source: Internet
Author: User

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 ).

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.