P:\CODE\Lesson1\Lesson1.cpp(141) : error C2601: 'WinMain' : local function definitions are illegal
P:\CODE\Lesson1\Lesson1.cpp(141) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\Lesson1.sbr': No such file or directory
Error executing bscmake.exe.Lesson1.exe - 3 error(s), 0 warning(s)
   请问怎么调试啊?????

解决方案 »

  1.   

    看看WinMain是不是定义出了问题,
    然后Clean,再rebuild,试试
      

  2.   

    可能是VC坏了吧。我以前出现过此问题,重新安装操作系统和VC才行
      

  3.   

    winmain前面的定义是不是也出现了问题,如class定义末加分号结束等
      

  4.   

    P:\CODE\Lesson1\Lesson1.cpp(141) : error C2601: 'WinMain' : local function definitions are illegal
    P:\CODE\Lesson1\Lesson1.cpp(141) : fatal error C1903: unable to recover from previous error(s); stopping compilation
    Error executing cl.exe.
    Creating browse info file...
    BSCMAKE: error BK1506 : cannot open file '.\Debug\Lesson1.sbr': No such file or directory
    Error executing bscmake.exe.Lesson1.exe - 3 error(s), 0 warning(s)
       请问怎么调试啊?????
    ----------------------------------------------------------------------------------
    编译都没通过,还调试?贴具体代码出来,不要让大伙猜