C++ Pro Compiler Error

Hello I was programming in c++ pro and I tried download it and this error came up:

15:04:45 – error – In file included from …/vexv5/gcc/include\stdlib.h:11:
…/vexv5/gcc/include/_ansi.h:16:10: fatal error: ‘sys/config.h’ file not found

Please don’t use VCS. It is outdated and replaced by VexCode which you can download here:

Not really sure what the error is but sounds like you are trying to include something that doesn’t exist. Please post your entire code it will help us discern the problem. Preferably in nice [code] ... [/code] tags so that we can read it better.

I think the its talking about the motor/sensor setup include thing at the top of the program but I haven’t changed anything about it

Hmm. Well…

1 Like
#include "robot-config.h"
void BedU(){
  BedL.startRotateTo(85, vex::rotationUnits::deg, 45, vex::velocityUnits::pct);
  BedR.startRotateTo(85, vex::rotationUnits::deg, 45, vex::velocityUnits::pct);
  BedE.rotateTo(3, vex::rotationUnits::rev, 45, vex::velocityUnits::pct);  

void BedD(){
     BedL.startRotateTo(0, vex::rotationUnits::deg, 75, vex::velocityUnits::pct);
     BedR.startRotateTo(0, vex::rotationUnits::deg, 75, vex::velocityUnits::pct);
     BedE.rotateTo(0, vex::rotationUnits::rev, 75, vex::velocityUnits::pct);

void BedEB(){

int main() {
    while (1){
        LeftD.spin(vex::directionType::fwd, Controller.Axis3.value(), vex::velocityUnits::pct);
        RightD.spin(vex::directionType::fwd, Controller.Axis2.value(), vex::velocityUnits::pct);
            Claw.spin(vex::directionType::fwd, 50, vex::velocityUnits::pct);
        else if(Controller.ButtonR2.pressing()){
            Claw.spin(vex::directionType::rev, 50, vex::velocityUnits::pct);
        else {
            BedL.spin(vex::directionType::fwd, 50, vex::velocityUnits::pct);
            BedR.spin(vex::directionType::fwd, 50, vex::velocityUnits::pct);
        else if(Controller.ButtonL2.pressing()){
            BedR.spin(vex::directionType::rev, 50, vex::velocityUnits::pct);
            BedL.spin(vex::directionType::rev, 50, vex::velocityUnits::pct);
        else {
            Hdrive.spin(vex::directionType::rev, 100, vex::velocityUnits::pct);
        else if(Controller.ButtonRight.pressing()){
            Hdrive.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
        else {

and here is the motor sensor setup

vex::brain Brain;
vex::motor LeftD = vex::motor(vex::PORT1,vex::gearSetting::ratio18_1,false);
vex::motor RightD = vex::motor(vex::PORT10,vex::gearSetting::ratio18_1,true);
vex::motor BedL = vex::motor(vex::PORT2,vex::gearSetting::ratio36_1,false);
vex::motor BedR = vex::motor(vex::PORT9,vex::gearSetting::ratio36_1,true);
vex::motor Hdrive = vex::motor(vex::PORT5,vex::gearSetting::ratio18_1,false);
vex::motor BedE = vex::motor(vex::PORT15,vex::gearSetting::ratio18_1,false);
vex::motor Wrist = vex::motor(vex::PORT16,vex::gearSetting::ratio18_1,false);
vex::motor Claw = vex::motor(vex::PORT17,vex::gearSetting::ratio18_1,false);
vex::controller Controller = vex::controller();

sorry I haven’t used the code thing before so it looks weird

Maybe type

#include "vex.h"

Right under include robot config.

vex.h is a VEXcode header, it’s not available in VCS.

That error is usually a problem with the VCS installation, see if VCS will build anything at all by creating a new project. If that will not compile, delete the VCS application support folder, I forget the exact location, but search the forum and you will find other posts with similar issues that have the details.