vs2008编译器和dubuger以错误的方式工作

时间:2013-08-28 10:33:34

标签: compiler-errors

最近,我的vs2008以错误的方式工作,例如:

 int avalue =30;
  int tempvalue=avalue;
  if (avalue>25)
{
  tempvalue =avalue+5;
} 

以debuger的方式运行,我的编译器发生了什么,“avalue”的值是35,我尝试了一段时间,但是没有发生任何事情。我重启了我的vs2008编译器,“avalue”的值“也是35.自从重新启动计算机以来,它工作得很好。  然而     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(148):错误C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(150):错误C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(155):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(156):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(157):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(158):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(161):错误C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(162):错误C2065:“Tower”:未声明的标识符     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(162):错误C2059:语法错误:“>”     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(162):错误C2653:“Tower”:不是类或命名空间名称     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(163):错误C2143:语法错误:缺少“)”(在“;”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(163):错误C2059:语法错误:“)”     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(164):错误C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(168):错误C2143:语法错误:缺少“)”(在“;”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(168):错误C2059:语法错误:“)”     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(169):error C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(172):错误C2065:“Epoint”:未声明的标识符     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(174):错误C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(178):错误C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(178):错误C2065:“bullet”:未声明的标识符     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(178):错误C2065:“敌人”:未声明的标识符     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(178):错误C2143:语法错误:缺少“,”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(180):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(181):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(182):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(183):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(186):错误C2143:语法错误:缺少“;”(在“{”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(188):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(189):错误C2143:语法错误:缺少“;”(在“}”的前面)     1> e:\ learnprj \ towerdefence \ towerdefence \ classes \ helloworldscene.cpp(189):致命错误C1004:发现意外的文件尾     1 GT; main.cpp中     1 GT; Tower.cpp     1> e:\ learnprj \ towerdefence \ towerdefence \ proj.win32 \ tower.cpp(2):致命错误C1083:无法打开包括文件:“CCControlPotentiometer.h”:没有这样的文件或目录     1 GT; Towerbase.cpp     1 GT; tinystr.cpp     1 GT; tinyxml.cpp     1 GT; tinyxmlerror.cpp     1 GT; tinyxmlparser.cpp     1 GT;正在生成代码...     1 GT;生成日志保存在“文件:// E:\ LearnPrj \ TowerDefence \ TowerDefence \ proj.win32 \ Debug.win32 \ BuildLog.htm”     1> TowerDefence.win32 - 111个错误,0个警告     ==========生成:成功0个,失败1个,最新0个,跳过0个==========

我已经检查了几次,但我找不到任何错误。 怎么能解决这个问题呢?

0 个答案:

没有答案