Error corelibc. Lib (pegwmain. OBJ) in evc4.0: Error lnk2019

Source: Internet
Author: User

A c program compiled with only an empty main function cannot be built in EVC. the following error occurs during run. Why? I installed evc4.0 and linking of Wince SDK in XP...
Corelibc. Lib (pegwmain. OBJ): Error lnk2019: unresolved external symbol _ winmain referenced in function _ winmaincrtstartup
Memory.exe: Fatal error lnk1120: 1 unresolved externals error executing memory.exe

My solution: Check the type of the project, such as MFC, console, and others. A compilation error indicates that the program already has a winmain () flag. This function is the main function programmed in WindowsCE, rather than main (). The program entry is the winmain function. Change the main () function to winmain.

 

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.