build 程序时,出现这种错误,究竟是什么错误?郁闷的不行了!谢谢LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/API_3.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

解决方案 »

  1.   

    Make sure that the option /subsystem:windows and not /subsystem:console
    You can check for the value of this option, in Project / Setting / Link Tab, Project Options... 
      

  2.   

    是不是在file选项中部份文件没有添加进去!
    或者没有编译头文件 ,可以设置试试 !
      

  3.   

    你的问题是将编译选项中的/subsystem:console 改为/subsystem:windows
    在菜单Project->Setting->Link页的最下方,呵呵
      

  4.   

    终于搞定的,谢谢各位!
    是不是建立控制台程序时默认为console?