2 shldhsh shldhsh 于 2014.03.25 15:46 提问

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个回答

lzp_lrp
lzp_lrp   Ds   Rxr 2015.06.05 08: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

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

Csdn user default icon
上传中...
上传图片
插入图片