CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    europe/ch
    Posts
    22

    Link error with #define _UNICODE

    Hi all,
    I'm trying using the unicode property. But in the link process I got the following error:


    msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/etrangevision.exe : fatal error LNK1120: 1 unresolved externals




    What means this error.
    Thanks in advance


  2. #2
    Join Date
    Apr 1999
    Posts
    23

    Re: Link error with #define _UNICODE

    If you look up LNK2001 in the Help you will find the following paragraph.

    "If you are using Unicode and MFC, you will get an unresolved external on _WinMain@16 if you don’t create an entrypoint to wWinMainCRTStartup. Use the /ENTRY option or type this value in the Project Settings dialog box. (To find this option in the development environment, click Settings on the Project menu, then click the Link tab, and click Output in the Category box.) "

    This will solve the problem.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured