So I tried the methods you mentioned (updated okapi, compiled the project using prosv5 command and fixing the inclusion by directly including okapi) but I still get this error.
Compiled src/main.cpp [WARNINGS]
In file included from ./include/main.h:43:0,
from src/main.cpp:1:
./include/subFuncts/deviceDefinitions.h:4:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup leftDrive;
^~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:5:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup rightDrive;
^~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:6:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revLeftDrive;
^~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:7:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revRightDrive;
^~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:10:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup side_Rollers;
^~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:11:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup left_Flywheel;
^~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:12:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup right_Flywheel;
^~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:14:8: error: ‘Controller’ does not name a type; did you mean ‘_strtoll_r’?
extern Controller MainController;
^~~~~~~~~~
_strtoll_r
./include/subFuncts/deviceDefinitions.h:21:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampUpButton;
^~~~~~~~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:22:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampDownButton;
^~~~~~~~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:23:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerInButton;
^~~~~~~~~~~~~~~~
./include/subFuncts/deviceDefinitions.h:24:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerOutButton;
^~~~~~~~~~~~~~~~
src/main.cpp: In function ‘void opcontrol()’:
src/main.cpp:29:19: error: ‘leftDrive’ was not declared in this scope
.withMotors(leftDrive,rightDrive)
^~~~~~~~~
src/main.cpp:29:29: error: ‘rightDrive’ was not declared in this scope
.withMotors(leftDrive,rightDrive)
^~~~~~~~~~
src/main.cpp:40:27: error: ‘MainController’ was not declared in this scope
drive->getModel()->tank(MainController.getAnalog(ControllerAnalog::leftY),
^~~~~~~~~~~~~~
src/main.cpp:44:7: error: ‘rampUpButton’ was not declared in this scope
if (rampUpButton.isPressed()){
^~~~~~~~~~~~
src/main.cpp:45:4: error: ‘left_Flywheel’ was not declared in this scope
left_Flywheel.moveVelocity(600);
^~~~~~~~~~~~~
src/main.cpp:47:14: error: ‘rampDownButton’ was not declared in this scope
} else if (rampDownButton.isPressed()){
^~~~~~~~~~~~~~
src/main.cpp:48:4: error: ‘left_Flywheel’ was not declared in this scope
left_Flywheel.moveVelocity(-600);
^~~~~~~~~~~~~
src/main.cpp:53:4: error: ‘left_Flywheel’ was not declared in this scope
left_Flywheel.moveVelocity(0);
^~~~~~~~~~~~~
src/main.cpp:58:7: error: ‘sideRollerInButton’ was not declared in this scope
if (sideRollerInButton.isPressed())
^~~~~~~~~~~~~~~~~~
src/main.cpp:60:4: error: ‘side_Rollers’ was not declared in this scope
side_Rollers.moveVelocity(600);
^~~~~~~~~~~~
src/main.cpp:61:4: error: ‘right_Flywheel’ was not declared in this scope
right_Flywheel.moveVelocity(450);
^~~~~~~~~~~~~~
src/main.cpp:65:12: error: ‘sideRollerOutButton’ was not declared in this scope
else if (sideRollerOutButton.isPressed())
^~~~~~~~~~~~~~~~~~~
src/main.cpp:67:4: error: ‘side_Rollers’ was not declared in this scope
side_Rollers.moveVelocity(-600);
^~~~~~~~~~~~
src/main.cpp:68:4: error: ‘right_Flywheel’ was not declared in this scope
right_Flywheel.moveVelocity(-450);
^~~~~~~~~~~~~~
src/main.cpp:74:3: error: ‘side_Rollers’ was not declared in this scope
side_Rollers.moveVelocity(0);
^~~~~~~~~~~~
mv: cannot stat ‘.d/main.Td’: No such file or directory
make: [common.mk:271: bin/main.cpp.o] Error 1 (ignored)
Compiled src/subFuncts/autoFunctions.cpp [WARNINGS]
In file included from src/subFuncts/…/…/include/main.h:43:0,
from src/subFuncts/autoFunctions.cpp:1:
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:4:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup leftDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:5:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup rightDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:6:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revLeftDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:7:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revRightDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:10:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup side_Rollers;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:11:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup left_Flywheel;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:12:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup right_Flywheel;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:14:8: error: ‘Controller’ does not name a type; did you mean ‘_strtoll_r’?
extern Controller MainController;
^~~~~~~~~~
_strtoll_r
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:21:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampUpButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:22:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampDownButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:23:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerInButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:24:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerOutButton;
^~~~~~~~~~~~~~~~
src/subFuncts/autoFunctions.cpp:6:18: error: ‘ChassisControllerFactory’ has not been declared
auto audoDrive = ChassisControllerFactory::create
^~~~~~~~~~~~~~~~~~~~~~~~
src/subFuncts/autoFunctions.cpp:8:3: error: ‘leftDrive’ was not declared in this scope
leftDrive,
^~~~~~~~~
src/subFuncts/autoFunctions.cpp:8:3: note: suggested alternative: ‘audoDrive’
leftDrive,
^~~~~~~~~
audoDrive
src/subFuncts/autoFunctions.cpp:9:3: error: ‘rightDrive’ was not declared in this scope
rightDrive,
^~~~~~~~~~
src/subFuncts/autoFunctions.cpp:9:3: note: suggested alternative: ‘audoDrive’
rightDrive,
^~~~~~~~~~
audoDrive
src/subFuncts/autoFunctions.cpp:16:1: error: expected primary-expression before ‘)’ token
);
^
src/subFuncts/autoFunctions.cpp:18:25: error: ‘AsyncControllerFactory’ has not been declared
auto baseMPController = AsyncControllerFactory::motionProfile(1.0,2.0,10.0,autoDrive);
^~~~~~~~~~~~~~~~~~~~~~
src/subFuncts/autoFunctions.cpp:18:76: error: ‘autoDrive’ was not declared in this scope
auto baseMPController = AsyncControllerFactory::motionProfile(1.0,2.0,10.0,autoDrive);
^~~~~~~~~
src/subFuncts/autoFunctions.cpp:18:76: note: suggested alternative: ‘autoChoose’
auto baseMPController = AsyncControllerFactory::motionProfile(1.0,2.0,10.0,autoDrive);
^~~~~~~~~
autoChoose
mv: cannot stat ‘.d/subFuncts/autoFunctions.Td’: No such file or directory
make: [common.mk:271: bin/subFuncts/autoFunctions.cpp.o] Error 1 (ignored)
Compiled src/subFuncts/deviceDefinitions.cpp [WARNINGS]
In file included from src/subFuncts/…/…/include/main.h:43:0,
from src/subFuncts/deviceDefinitions.cpp:1:
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:4:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup leftDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:5:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup rightDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:6:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revLeftDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:7:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revRightDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:10:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup side_Rollers;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:11:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup left_Flywheel;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:12:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup right_Flywheel;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:14:8: error: ‘Controller’ does not name a type; did you mean ‘_strtoll_r’?
extern Controller MainController;
^~~~~~~~~~
_strtoll_r
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:21:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampUpButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:22:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampDownButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:23:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerInButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:24:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerOutButton;
^~~~~~~~~~~~~~~~
mv: cannot stat ‘.d/subFuncts/deviceDefinitions.Td’: No such file or directory
make: [common.mk:271: bin/subFuncts/deviceDefinitions.cpp.o] Error 1 (ignored)
Compiled src/subFuncts/driveFuncts.cpp [WARNINGS]
In file included from src/subFuncts/…/…/include/main.h:43:0,
from src/subFuncts/driveFuncts.cpp:1:
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:4:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup leftDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:5:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup rightDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:6:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revLeftDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:7:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup revRightDrive;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:10:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup side_Rollers;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:11:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup left_Flywheel;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:12:8: error: ‘MotorGroup’ does not name a type
extern MotorGroup right_Flywheel;
^~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:14:8: error: ‘Controller’ does not name a type; did you mean ‘_strtoll_r’?
extern Controller MainController;
^~~~~~~~~~
_strtoll_r
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:21:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampUpButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:22:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton rampDownButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:23:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerInButton;
^~~~~~~~~~~~~~~~
src/subFuncts/…/…/include/subFuncts/deviceDefinitions.h:24:8: error: ‘ControllerButton’ does not name a type
extern ControllerButton sideRollerOutButton;
^~~~~~~~~~~~~~~~
src/subFuncts/driveFuncts.cpp:21:17: error: ‘leftDrive’ was not declared in this scope
.withMotors(leftDrive,rightDrive)
^~~~~~~~~
src/subFuncts/driveFuncts.cpp:21:27: error: ‘rightDrive’ was not declared in this scope
.withMotors(leftDrive,rightDrive)
^~~~~~~~~~
src/subFuncts/driveFuncts.cpp:37:25: error: ‘leftDrive’ was not declared in this scope
.withMotors(leftDrive,rightDrive)
^~~~~~~~~
src/subFuncts/driveFuncts.cpp:37:35: error: ‘rightDrive’ was not declared in this scope
.withMotors(leftDrive,rightDrive)
^~~~~~~~~~
src/subFuncts/driveFuncts.cpp: In function ‘void shoot()’:
src/subFuncts/driveFuncts.cpp:52:5: error: ‘left_Flywheel’ was not declared in this scope
left_Flywheel.moveVelocity(-600);
^~~~~~~~~~~~~
src/subFuncts/driveFuncts.cpp:54:5: error: ‘right_Flywheel’ was not declared in this scope
right_Flywheel.moveVelocity(-300);
^~~~~~~~~~~~~~
src/subFuncts/driveFuncts.cpp: In function ‘void sideRollers()’:
src/subFuncts/driveFuncts.cpp:64:5: error: ‘side_Rollers’ was not declared in this scope
side_Rollers.moveVelocity(600);//turn on side rollers
^~~~~~~~~~~~
src/subFuncts/driveFuncts.cpp:64:5: note: suggested alternative: ‘sideRollers’
side_Rollers.moveVelocity(600);//turn on side rollers
^~~~~~~~~~~~
sideRollers
src/subFuncts/driveFuncts.cpp: In function ‘void intake()’:
src/subFuncts/driveFuncts.cpp:71:3: error: ‘left_Flywheel’ was not declared in this scope
left_Flywheel.moveVelocity(-200);
^~~~~~~~~~~~~
src/subFuncts/driveFuncts.cpp:72:3: error: ‘side_Rollers’ was not declared in this scope
side_Rollers.moveVelocity(200);
^~~~~~~~~~~~
src/subFuncts/driveFuncts.cpp:72:3: note: suggested alternative: ‘sideRollers’
side_Rollers.moveVelocity(200);
^~~~~~~~~~~~
sideRollers
mv: cannot stat ‘.d/subFuncts/driveFuncts.Td’: No such file or directory
make: [common.mk:271: bin/subFuncts/driveFuncts.cpp.o] Error 1 (ignored)
Adding timestamp [OK]
Linking hot project with ./bin/cold.package.elf and okapilib,libm,libc,libpros [ERRORS]
arm-none-eabi-g++.exe: error: bin/main.cpp.o: No such file or directory
arm-none-eabi-g++.exe: error: bin/subFuncts/autoFunctions.cpp.o: No such file or directory
arm-none-eabi-g++.exe: error: bin/subFuncts/deviceDefinitions.cpp.o: No such file or directory
arm-none-eabi-g++.exe: error: bin/subFuncts/driveFuncts.cpp.o: No such file or directory
make: *** [common.mk:239: bin/hot.package.elf] Error 1
Capturing metadata for PROS Editor…
Error: Failed to build