I have the following class which will not compile for the unresolved symbol issue LNK2019. I have seen another thread which appears to be a similar issue, but I cannot see why mine is not linking because it is much simpler and seems to be a standard implementation. Anyway... Thank you
// windowLevel.h header file for the class.  Error is related to not resolving the constructor
window level.h:
#ifndef WINDOWLEVEL_H
#define WINDOWLEVEL_H
class windowLevel
{
public:
    windowLevel();
    void setWindow(unsigned int window){m_window = window;} // setters
    void setLevel(unsigned int level){m_level = level;}
    unsigned int window(){return m_window;} // getters
    unsigned int level(){return m_level;}
private:
    unsigned int m_window;
    unsigned int m_level;
    unsigned const int m_level_max = 255;
    unsigned const int m_level_min = 0;
    unsigned const int m_window_max = 255;
    unsigned const int m_window_min = 0;
};
#endif // WINDOWLEVEL_H
// windowlevel.cpp class implementation file
windowlevel.cpp:
#include "windowlevel.h"
windowLevel::windowLevel()
{
}
// main.cpp main function
main.cpp:
#include <QCoreApplication>
#include <iostream>
#include "windowlevel.h"
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    qDebug("Starting window level");
    windowLevel win; // instantiate a windowlevel object
    qDebug("Done!");
    return a.exec();
}
 
    