因为米有在线帮助的文档只好把问题放在这里问大家:
我用的是VC++6.0,在编译过程中提示:LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
这是个啥问题?

解决方案 »

  1.   

    你的工程是否#define unicode了.
    这个问题一般都是由unicode引起的.
    需要在project settings 的Link目录
    category选中output,在entry_point symbol 填上wWinMainCRTStartup如果不是unicode的,那俺就不晓得了
      

  2.   

    http://support.microsoft.com/kb/125750/EN-US/
      

  3.   

    问题原因和解决方法如下:
    Visual C++ .NET: 
    error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
    fatal error LNK1120: 1 unresolved externals 
    CAUSE
    MFC UNICODE applications use wWinMainCRTStartup as the entry point. 
    RESOLUTION
    In the Output category of the Link tab in the Project Settings dialog box, set the Entry Point Symbol to wWinMainCRTStartup. For Visual C++ .NET: In the Advanced category of the Linker folder in the Project Properties dialog box, set the Entry Point to wWinMainCRTStartup.
      

  4.   

    不知道楼主解决了问题没有:
    我想楼主可能是初学VC,对VC的不了解所致(也许我说的不对,海涵!!!)
    1.VC建工程的时候有好多的向导选项,如果要建的工程与你所选择的工程不一致的话,你在后面作的修改可能比较麻烦,对于初学者,可能令人失望而不敢学VC。
    2.可能楼主是要建立一个Win32 Application工程,而你选择了建立Win32 Console Application或者其他(由于手边没有VC,可能说的有点出入,请参看VC)
    3.所以楼主重新作一个Win32 Application工程,并按向导及加入相应的代码即可。(如果我说的跟楼主的不是一回事,请在此再申明,我再找原因呀!)
      

  5.   

    谢谢各位顶帖的GGJJ...偶是新用VC的...抱歉各位一下...
      

  6.   

    我新建的是Win32 Applocation 在工程里包含如下文件:
    MFC.CPP,MY.CPP以及MFC.H和MY.H两个头文件.
    还有各个文件里面的预定义部分:
    //-------
    //MFC.CPP
    //-------
    #include "my.h"
    //-------
    //MY.CPP
    //-------
    #include "my.h"
    //-------
    //MFC.H
    //-------
    #include <iostream.h>
    //-------
    //MY.H
    //-------
    #include <iostream.h>
    #include "mfc.h"想问下是不是因为重复预定义造成以上的错误?
      

  7.   

    Build之后的输出是以下内容:
    --------------------Configuration: MFC - Win32 Debug--------------------
    Linking...
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/MFC.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.MFC.exe - 2 error(s), 0 warning(s)