善良的花生a 2014-03-25 07:46 采纳率: 0%
浏览 2532

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> ....\Src\libbhuman\bhuman.cpp(14) :28: warning: alcore\altypes.h: No such file or directory
3> ....\Src\libbhuman\bhuman.cpp(15) :28: warning: alcore\alerror.h: No such file or directory
3> ....\Src\libbhuman\bhuman.cpp(16) :31: warning: alcommon\albroker.h: No such file or directory
3> ....\Src\libbhuman\bhuman.cpp(17) :30: warning: alcommon\alproxy.h: No such file or directory
3> ....\Src\libbhuman\bhuman.cpp(18) :32: warning: alproxies\dcmproxy.h: No such file or directory
3> ....\Src\libbhuman\bhuman.cpp(19) :37: warning: alproxies\almemoryproxy.h: No such file or directory
3>....\Src\libbhuman\bhuman.cpp(29): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(29): error : expected constructor, destructor, or type conversion before '*' token
3>....\Src\libbhuman\bhuman.cpp(30): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(30): error : expected constructor, destructor, or type conversion before '*' token
3>....\Src\libbhuman\bhuman.cpp(31): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(31): error : expected constructor, destructor, or type conversion before '*' token
3>....\Src\libbhuman\bhuman.cpp(32): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(32): error : expected constructor, destructor, or type conversion before '*' token
3>....\Src\libbhuman\bhuman.cpp(33): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(33): error : expected constructor, destructor, or type conversion before '*' token
3>....\Src\libbhuman\bhuman.cpp(34): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(34): error : expected constructor, destructor, or type conversion before '*' token
3> ....\Src\libbhuman\bhuman.cpp: In function 'void sitDown(float, float*)':
3>....\Src\libbhuman\bhuman.cpp(424): error : 'positionRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(425): error : 'hardnessRequest' was not declared in this scope
3> ....\Src\libbhuman\bhuman.cpp: In function 'void standUp(float, float*, float*)':
3>....\Src\libbhuman\bhuman.cpp(455): error : 'positionRequest' was not declared in this scope
3> ....\Src\libbhuman\bhuman.cpp: In function 'void onPreProcess()':
3>....\Src\libbhuman\bhuman.cpp(475): error : 'proxy' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(475): error : 'positionRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(475): error : 'hardnessRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(486): error : 'stderr' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(486): error : 'fprintf' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(563): error : 'usRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(575): error : 'ledRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(575): error : 'string' is not a member of 'std'
3>....\Src\libbhuman\bhuman.cpp(582): error : expected type-specifier before 'AL'
3>....\Src\libbhuman\bhuman.cpp(582): error : expected )' before '::' token
3>..\..\Src\libbhuman\bhuman.cpp(582): error : expected
{' before '::' token
3>....\Src\libbhuman\bhuman.cpp(582): error : '::ALError' has not been declared
3>....\Src\libbhuman\bhuman.cpp(582): error : 'e' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(582): error : expected ;' before ')' token
3> ..\..\Src\libbhuman\bhuman.cpp: In function 'void onPostProcess()':
3>..\..\Src\libbhuman\bhuman.cpp(591): error : 'memory' was not declared in this scope
3>..\..\Src\libbhuman\bhuman.cpp(591): error : 'proxy' was not declared in this scope
3>..\..\Src\libbhuman\bhuman.cpp(601): error : 'assert' was not declared in this scope
3>..\..\Src\libbhuman\bhuman.cpp(616): error : 'system' was not declared in this scope
3>..\..\Src\libbhuman\bhuman.cpp(618): error : 'system' was not declared in this scope
3>..\..\Src\libbhuman\bhuman.cpp(622): error : expected type-specifier before 'AL'
3>..\..\Src\libbhuman\bhuman.cpp(622): error : expected
)' before '::' token
3>....\Src\libbhuman\bhuman.cpp(622): error : expected {' before '::' token
3>..\..\Src\libbhuman\bhuman.cpp(622): error : '::ALError' has not been declared
3>..\..\Src\libbhuman\bhuman.cpp(622): error : 'e' was not declared in this scope
3>..\..\Src\libbhuman\bhuman.cpp(622): error : expected
;' before ')' token
3>....\Src\libbhuman\bhuman.cpp(641): error : 'stderr' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(641): error : 'fprintf' was not declared in this scope
3> ....\Src\libbhuman\bhuman.cpp: In function 'void close()':
3>....\Src\libbhuman\bhuman.cpp(650): error : 'stderr' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(650): error : 'fprintf' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(648): error : too many arguments to function 'void close()'
3>....\Src\libbhuman\bhuman.cpp(662): error : at this point in file
3>....\Src\libbhuman\bhuman.cpp(674): error : 'proxy' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(676): error : type '' argument given to 'delete', expected pointer
3>....\Src\libbhuman\bhuman.cpp(679): error : 'positionRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(681): error : type '' argument given to 'delete', expected pointer
3>....\Src\libbhuman\bhuman.cpp(684): error : 'hardnessRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(686): error : type '' argument given to 'delete', expected pointer
3>....\Src\libbhuman\bhuman.cpp(689): error : 'usRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(691): error : type '' argument given to 'delete', expected pointer
3>....\Src\libbhuman\bhuman.cpp(694): error : 'ledRequest' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(696): error : type '' argument given to 'delete', expected pointer
3>....\Src\libbhuman\bhuman.cpp(699): error : 'memory' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(701): error : type '' argument given to 'delete', expected pointer
3> ....\Src\libbhuman\bhuman.cpp: At global scope:
3>....\Src\libbhuman\bhuman.cpp(708): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(708): error : 'AL' has not been declared
3>....\Src\libbhuman\bhuman.cpp(708): error : 'pBroker' was not declared in this scope
3>....\Src\libbhuman\bhuman.cpp(709): error : expected ',' or ';' before '{' token
3> make: *** [../../Build/libbhuman/Linux/Release/bhuman.o] Error 1
3>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.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>生成失败。

  • 写回答

1条回答

  • WorldMobile 2015-06-05 00:40
    关注

    把代码贴上来

    3>....\Src\libbhuman\bhuman.cpp(591): error : 'memory' was not declared in this scope
    3>....\Src\libbhuman\bhuman.cpp(591): error : 'proxy' was not declared in this scope
    3>....\Src\libbhuman\bhuman.cpp(601): error : 'assert' was not declared in this scope
    3>....\Src\libbhuman\bhuman.cpp(616): error : 'system' was not declared in this scope
    3>....\Src\libbhuman\bhuman.cpp(618): error : 'system' was not declared in this scope

    这里很明显是没有声明,或者声明错位置了

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘