问题描述
- vs2010错误机器人足球
-
最近在学习机器人足球 用的是vs2010运行代码 老是出现错误
3> ------ Building libbhuman (Release) ------
3> bhuman.cpp
1> Enum.cpp
1> Global.cpp
1> Geometry.cpp
1> Pose2D.cpp
1> OutStreams.cpp
3> ....Srclibbhumanbhuman.cpp(14) :28: warning: alcorealtypes.h: No such file or directory
3> ....Srclibbhumanbhuman.cpp(15) :28: warning: alcorealerror.h: No such file or directory
3> ....Srclibbhumanbhuman.cpp(16) :31: warning: alcommonalbroker.h: No such file or directory
3> ....Srclibbhumanbhuman.cpp(17) :30: warning: alcommonalproxy.h: No such file or directory
3> ....Srclibbhumanbhuman.cpp(18) :32: warning: alproxiesdcmproxy.h: No such file or directory
3> ....Srclibbhumanbhuman.cpp(19) :37: warning: alproxiesalmemoryproxy.h: No such file or directory
3>....Srclibbhumanbhuman.cpp(29): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(29): error : expected constructor, destructor, or type conversion before '*' token
3>....Srclibbhumanbhuman.cpp(30): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(30): error : expected constructor, destructor, or type conversion before '*' token
3>....Srclibbhumanbhuman.cpp(31): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(31): error : expected constructor, destructor, or type conversion before '*' token
3>....Srclibbhumanbhuman.cpp(32): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(32): error : expected constructor, destructor, or type conversion before '*' token
3>....Srclibbhumanbhuman.cpp(33): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(33): error : expected constructor, destructor, or type conversion before '*' token
3>....Srclibbhumanbhuman.cpp(34): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(34): error : expected constructor, destructor, or type conversion before '*' token
3> ....Srclibbhumanbhuman.cpp: In function 'void sitDown(float, float*)':
3>....Srclibbhumanbhuman.cpp(424): error : 'positionRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(425): error : 'hardnessRequest' was not declared in this scope
3> ....Srclibbhumanbhuman.cpp: In function 'void standUp(float, float*, float*)':
3>....Srclibbhumanbhuman.cpp(455): error : 'positionRequest' was not declared in this scope
3> ....Srclibbhumanbhuman.cpp: In function 'void onPreProcess()':
3>....Srclibbhumanbhuman.cpp(475): error : 'proxy' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(475): error : 'positionRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(475): error : 'hardnessRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(486): error : 'stderr' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(486): error : 'fprintf' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(563): error : 'usRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(575): error : 'ledRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(575): error : 'string' is not a member of 'std'
3>....Srclibbhumanbhuman.cpp(582): error : expected type-specifier before 'AL'
3>....Srclibbhumanbhuman.cpp(582): error : expected)' before '::' token
{' before '::' token
3>....Srclibbhumanbhuman.cpp(582): error : expected
3>....Srclibbhumanbhuman.cpp(582): error : '::ALError' has not been declared
3>....Srclibbhumanbhuman.cpp(582): error : 'e' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(582): error : expected;' before ')' token
)' before '::' token
3> ....Srclibbhumanbhuman.cpp: In function 'void onPostProcess()':
3>....Srclibbhumanbhuman.cpp(591): error : 'memory' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(591): error : 'proxy' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(601): error : 'assert' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(616): error : 'system' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(618): error : 'system' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(622): error : expected type-specifier before 'AL'
3>....Srclibbhumanbhuman.cpp(622): error : expected
3>....Srclibbhumanbhuman.cpp(622): error : expected{' before '::' token
;' before ')' token
3>....Srclibbhumanbhuman.cpp(622): error : '::ALError' has not been declared
3>....Srclibbhumanbhuman.cpp(622): error : 'e' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(622): error : expected
3>....Srclibbhumanbhuman.cpp(641): error : 'stderr' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(641): error : 'fprintf' was not declared in this scope
3> ....Srclibbhumanbhuman.cpp: In function 'void close()':
3>....Srclibbhumanbhuman.cpp(650): error : 'stderr' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(650): error : 'fprintf' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(648): error : too many arguments to function 'void close()'
3>....Srclibbhumanbhuman.cpp(662): error : at this point in file
3>....Srclibbhumanbhuman.cpp(674): error : 'proxy' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(676): error : type '' argument given to 'delete', expected pointer
3>....Srclibbhumanbhuman.cpp(679): error : 'positionRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(681): error : type '' argument given to 'delete', expected pointer
3>....Srclibbhumanbhuman.cpp(684): error : 'hardnessRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(686): error : type '' argument given to 'delete', expected pointer
3>....Srclibbhumanbhuman.cpp(689): error : 'usRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(691): error : type '' argument given to 'delete', expected pointer
3>....Srclibbhumanbhuman.cpp(694): error : 'ledRequest' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(696): error : type '' argument given to 'delete', expected pointer
3>....Srclibbhumanbhuman.cpp(699): error : 'memory' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(701): error : type '' argument given to 'delete', expected pointer
3> ....Srclibbhumanbhuman.cpp: At global scope:
3>....Srclibbhumanbhuman.cpp(708): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(708): error : 'AL' has not been declared
3>....Srclibbhumanbhuman.cpp(708): error : 'pBroker' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(709): error : expected ',' or ';' before '{' token
3> make: *** [../../Build/libbhuman/Linux/Release/bhuman.o] Error 1
3>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.MakeFile.Targets(43,5): error MSB3073: 命令“bash -c "../../Util/zbuildgen/Win32/bin/zbuildgen.exe ../Linux/libbhuman.make.zbuild && make -f ../Linux/libbhuman.make clean CONFIG=Release SHELLOPTS=igncr && make -j 2 -f ../Linux/libbhuman.make CONFIG=Release SHELLOPTS=igncr"”已退出,代码为 2。
3>
3>生成失败。
解决方案
把代码贴上来
3>....Srclibbhumanbhuman.cpp(591): error : 'memory' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(591): error : 'proxy' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(601): error : 'assert' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(616): error : 'system' was not declared in this scope
3>....Srclibbhumanbhuman.cpp(618): error : 'system' was not declared in this scope
这里很明显是没有声明,或者声明错位置了
时间: 2024-10-03 12:58:21