I’m trying to build a project, but failed. I searched the problem, but no avalibable solution. The code is cloned from others.
using namespace vex;
extern brain Brain;
// VEXcode devices
/**
* Used to initialize code/tasks/devices added using tools in VEXcode Pro.
*
* This should be called at the start of your int main function.
*/
void vexcodeInit( void );
Here comes the info:
[info]: Saving Project ...
[info]: Project saved!
windows build for platform vexv5
"CXX src/robot-config.cpp"
src/robot-config.cpp:8:8: error: redefinition of 'Brain'
brain Brain;
^
include\vex.h:24:12: note: previous definition is here
vex::brain Brain;
^
1 error generated.
make: *** [vex/mkrules.mk:13: build/src/robot-config.o] Error 1
[error]: make process closed with exit code : 2