Here is my class which is in a header.

```
class AlarmPatterns
{
public:
   AlarmPatterns() {}

   virtual~AlarmPatterns();

   //alarm patterns
   enum class PATTERN_TYPES_E
   {
      BEEP_MODE,        //150
      IGN_BULBCHECK,    //160
      LOW_PRIO_REMIND,  //170
      DM1_RED,          //200
      HP_ALERT_5,       //210
      HP_ALERT_4,       //220
      HP_ALERT_3,       //230
      HP_ALERT_2,       //240
      HP_ALERT_1,       //250
      NUM_PATTERNS
   };

   static bool LoadPatternData(AP_S & pattern, const uint8_t id);

   static const AP_S Patterns[];
};

```

AP\_S is a typedef struct within the same namespace but outside the class

This is a base class since we aren't deriving from any other classes

In my test.cpp file I have:

```
AlarmPatterns * TestPattern;

void setup()
{
   TestPattern = new AlarmPatterns();
}

```

Commenting `TestPattern = new AlarmPatterns();` results in no errors

Here is the error

```
undefined reference to `vtable for Dragonfly::Alarm::AlarmPatterns'

```

Since there is no way I am missing any virtual functions from any base classes, I don't see how I am getting this error.