Hello,
I am having trouble with VEXCode such that everything is showing no errors, but when I build it says “undefined reference to [function]” for all of the functions in the API I have constructed
my prelude.h
#ifndef VEX_H
#define VEX_H
#include "vex.h"
#endif
#ifndef TANKJOYSTICK
#define TANKJOYSTICK
#include "WhoopAPI/includes/Calculators/tank-joystick.h"
#endif
#ifndef PIDOBJECT_H
#define PIDOBJECT_H
#include "WhoopAPI/includes/Calculators/pidObject.h"
#endif
#ifndef C_MAP
#define C_MAP
#include "WhoopAPI/includes/Calculators/controller-mapping.h"
#endif
#ifndef DRIVEOBJECT
#define DRIVEOBJECT
#include "WhoopAPI/includes/Robot/drivetrain-object.h"
#endif
#ifndef SIMPLEPID
#define SIMPLEPID
#include "WhoopAPI/includes/Drive_Auto_Algorithms/simple_pid.h"
#endif
#ifndef INTAKE_OBJECT
#define INTAKE_OBJECT
#include "WhoopAPI/includes/Robot/intake_object.h"
#endif
#ifndef LIFTOBJECT
#define LIFTOBJECT
#include "WhoopAPI/includes/Robot/lift_object.h"
#endif
#ifndef VECTOR
#define VECTOR
#include <vector>
#endif
I believe this may have to do with scoping, but I’m not sure. I tried moving the source files into src and yet it still had the same issue. The IDE is giving an “all clear” while the compiler is throwing errors while building. Is there anything I need to do to make this work?
Could this possibly have to do with the makefile?