Class has not been declared

class Port{
  private:
    uint8_t redPin, greenPin, bluePin;
  public:
    uint8_t getRed(){return redPin;}
    uint8_t getGreen(){return greenPin;}
    uint8_t getBlue(){return bluePin;}
    
    
   Port(uint8_t redPin, uint8_t greenPin, uint8_t bluePin){
    uint8_t red = redPin;
    uint8_t green = greenPin;
    uint8_t blue = bluePin;
    
   }
};
void setup() 
{

Port port1 (3,4,5);

}

This is the code I have written. It is just an object to keep track of which pin is which on multiple RGB LEDs. The error I get is error: 'Port' has not been declared. The line it gives for the error is a blank line. Any ideas?

Stop trying to implement your class (poorly) in the same file you declare the class in. This is NOT C#!

he error I get is error: 'Port' has not been declared

The error I get is "undefined reference to loop"

class Port{
  private:
    const uint8_t redPin, greenPin, bluePin;
  public:
    uint8_t getRed(){return redPin;}
    uint8_t getGreen(){return greenPin;}
    uint8_t getBlue(){return bluePin;}
   
   Port(uint8_t redPin, uint8_t greenPin, uint8_t bluePin) :
     red(redPin), green (greenPin), blue (bluePin)
   {  }
};

Port port1 (3,4,5);

void setup()
{
}

void loop ()
{
}

The error I get is "undefined reference to loop"

Interesting. Using 1.0.5, I get something completely different. Changing the constructor so that it stores the arguments into the fields, as so:

   Port(uint8_t red, uint8_t green, uint8_t blue) :
     redPin(red), greenPin (green), bluePin (blue)
   {  }

I get:

Binary sketch size: 522 bytes (of a 32,256 byte maximum)

which is the 'error" most people try to get.

class Port{
  private:
    const uint8_t redPin, greenPin, bluePin;
  public:
    uint8_t getRed(){return redPin;}
    uint8_t getGreen(){return greenPin;}
    uint8_t getBlue(){return bluePin;}
   
   Port(uint8_t redPin, uint8_t greenPin, uint8_t bluePin) :
     red(redPin), green (greenPin), blue (bluePin)
   {  }

This still won't work, because the class variables you defined on the third line, have DIFFERENT NAMES to what you are assigning in the constructor.

The error I get is error: 'Port' has not been declared.

You need to start looking at the error messages from the first one, not the last one.