V5 Pro is not reporting any problems with the code but when trying to download the code and it just gives me this error code:[error]: make process closed with exit code : 2 can anyone help me with this?
Have you tried a different wire, computer port, or controller?
paste the contents of the output tab so we can see what happens before the make error. it’s probably a linker error.
[info]: Saving Project …
[info]: Project saved!
windows build for platform vexv5
“CXX src/main.cpp”
“LINK build/RobotBCode.elf”
build/src/robot-config.o:(.bss.Brain+0x0): multiple definition of `Brain’
build/src/main.o:(.bss.Brain+0x0): first defined here
make: *** [vex/mkrules.mk:18: build/RobotBCode.elf] Error 1
[error]: make process closed with exit code : 2
I’ve used different code and that hasn’t ran into this issue the hardware is functional.
so I figured it out I accidentally defined Brain in both robot config and main under src that seems to have fixed the issue.
Yes, that’s what this error means.
build/src/robot-config.o:(.bss.Brain+0x0): multiple definition of `Brain’
build/src/main.o:(.bss.Brain+0x0): first defined here