"std::" does not work with new vexcode update

I recently updated my vexcode pro version to the latest as of today (2.0.5 I think), and some of my code is now broken.
std::string text; this shows up as red in code, and anything with std:: shows up as red, such as double max_raw_value = std::max(FL,std::max(ML,std::max(BL,std::max(FR,std::max(MR,std::max(BR,100.0))));

How can I fix this, and if I can’t fix this, how can I revert to an older version of vexcode?

Im dumb so any help would be appriciated

add #include <string> to the vex.h file

#include <math.h>
#include <stdio.h>
#include <string>
#include <stdlib.h>
#include <string.h>
#include "v5.h"
#include "v5_vcs.h"
5 Likes

THANK YOU (20 characg54t)

You should have had that before, so not sure why it was working. The only thing I can think of is I removed one standard library header from the controller class header.

#include <functional>

That was probably left over from some experiment years ago, it was the only C++ header included and we didn’t use it.

6 Likes