CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    37

    Link error when compiling with _UNICODE



    Hi, I'm trying to compile my program in UNICODE mode, but the linker spits out the following error:


    Linking...

    msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16

    Unicode_Release/Program.exe : fatal error LNK1120: 1 unresolved externals

    Error executing link.exe.


    What am I doing wrong here?


    thanks,

    -Matt

  2. #2
    Join Date
    Mar 1999
    Posts
    9

    Re: Link error when compiling with _UNICODE



    The following message is copied from MFC's Help on "LNK2001":


    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 Build menu, then click the Link tab, and click Output in the Category box.) See Unicode Programming Summary.


    Look at the help and good luck.


    Allen



  3. #3
    Join Date
    Apr 1999
    Posts
    11

    Re: Link error when compiling with _UNICODE

    Can u check out the subsystem of ur compiler options. i'l like to know if u have cleared the error.

    Mukthar

  4. #4

    Re: Link error when compiling with _UNICODE

    .

    God does not play dice. - Einstein
    Not only does God play dice, he sometimes throws them where they can't be seen. - Hawking

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