I was writing some code for a pneumatics system on my team’s robot, and I named the digital out wire “cylinder1.” When debugging, an error told me that “reference to ‘cylinder1’ is ambiguous.” I’ve tried with similar names from cylinder2-4 but after that it doesn’t produce the error. Are these names used for something else, barring me from using them?
Yes, the error code ‘is ambiguous’ means that two functions or classes have the same name. The only solution I can think of is pressing CRTL + F and trying to find what’s sharing the name.
1 Like
This might be a solution: If you have the line “using namespace std;” somewhere, it can also give an error saying “reverse” (direction) is ambigous. Try removing that line and instead put std::cout (example) if you are using a function from that namespace.
3 Likes
cylinder1 and cylinder2 are defined in the VEX sdk, use another name.
7 Likes