Vex VS coding


I just switched to vex VS studio for mac and it is erroring on the code even simple stuff like the wait(); command any ideas to fix?

Did you import a VEXcode project ?
Does a new project work ?

It looks like there’s a problem with project path name or something, does the project actually build ? (The errors are just coming from the C++ intellisense, it cannot find the vex sdk)

2 Likes

yes I imported a project and it still didn’t work and no it cant build

To me it looks like your not including “vex.h”.

At the top of the program could you check if you have:

#include “vex.h”

using namespace vex

1 Like

And make sure you have the “vex.h” folder

1 Like

It appears that you don’t have the vex library and namespace included. It should look like this at the very beginning of your program.

#include "vex.h"

using namespace vex;

Please note that you should have a file in your project folder named vex.h. If you do not make a new project using the VSC extension and then copy and paste your code along with the code above.