Very odd error - variable or field declared void

Hello, I am trying to code a flight computer.

The odd think about this error is:

This code block works flawlessly:

class PlaneStatus {
 public:
    PlaneStatus(double y, double p, double r, double t) {
      yaw = y;
      pitch = p;
      roll = r;
      throttle = t;
    }// Access specifier
    double yaw, pitch, roll, throttle;        // Attribute (int variable)      
};

void manuer(PlaneStatus ms){
  ms.pitch;
}


void setup(){}
void loop(){}

But when I add another function completely irrelevant to that object it gives error.

#include <Servo.h>
#include <Wire.h>

void driveServo(Servo servo, int trin ,int arg){
  servo.write(trin+ arg);
}

class PlaneStatus {
 public:
    PlaneStatus(double y, double p, double r, double t) {
      yaw = y;
      pitch = p;
      roll = r;
      throttle = t;
    }// Access specifier
    double yaw, pitch, roll, throttle;        // Attribute (int variable)      
};

void manuer(PlaneStatus ms){
  ms.pitch;
}

void setup(){}

void loop(){}

And the error message

sketch_jul01a:67:13: error: variable or field 'manuer' declared void

 void manuer(PlaneStatus ms){

             ^~~~~~~~~~~

sketch_jul01a:67:13: error: 'PlaneStatus' was not declared in this scope

C:\Users\isatu\AppData\Local\Temp\arduino_modified_sketch_56794\sketch_jul01a.ino:67:13: note: suggested alternative: 'mpuIntStatus'

 void manuer(PlaneStatus ms){

             ^~~~~~~~~~~

             mpuIntStatus

Can you guys help me figure out why is this?

Thank you and all input is appriciated

Not enough information. Please read and follow the directions in the "How to use the forum" post.

Post the minimum code that produces the error message, and the error message.

Then you have more work to do. Forum members cannot be asked to reconstruct your error situation.

Thank you for the input. I trimmed it a lot. I hope its good now. Can you remove your previous replies so they doesn't distract others?

No, that is not how this forum works.

Do not delete intermediate posts or add material to your original post, as [u]that[/u] is what creates the confusion.

Should I just repost. I dont understand what should I do really. I completed the missing information

Yes, please repost, either a minimum sketch as suggested in reply #1, or else the entire sketch.

The Arduino IDE's auto-prototype generation is screwing things up.

Code compiles OK in Eclipse / Sloeber.

For Arduino, this will fix it even though it looks strange:

void manuer(PlaneStatus ms);

void manuer(PlaneStatus ms) {
  ms.pitch;
}

BTW, this statement does absolutely nothing:

ms.pitch;

Thank you. Yes, I noticed that it complied ok when I compiled it on VS.

Note: I know that is just a statement rather than a command. It is not the real code. Thanks again

It is not the real code.

Always post the "real code".