错误信息(问题解决之后写的blog,拷贝了别人错误信息):

1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(19): error C2061: syntax error : identifier 'acosf'
1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(19): error C2059: syntax error : ';'
1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(19): error C2061: syntax error : identifier 'asinf'
1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(19): error C2059: syntax error : ';'
1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(20): error C2061: syntax error : identifier 'atanf'
1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(20): error C2059: syntax error : ';'
1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(20): error C2061: syntax error : identifier 'atan2f'

1>f:\program files\microsoft visual studio 10.0\vc\include\cmath(41): fatal error C1003: error count exceeds 100; stopping compilation
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.31
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

解决:

查询了microsoft visual studio 10.0\vc\include\cmath(19): error C2061

http://stackoverflow.com/questions/3376224/ms-vc-iostream-compile-error里找到了答案

项目-->属性-->配置属性-->C/C++-->高级-->编译为-->编译为C++代码

 

心得:

所有跟C++相关的语句均报错,应该能够想得到是环境的问题,不善于思考了,唉。

代码没问题,肯定是环境的问题。

搜索英文的解决方案比较靠谱和专业,中文的回复太多垃圾。

posted on 2011-04-01 20:22  歆悰  阅读(1031)  评论(0编辑  收藏  举报