善良的花生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

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

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料