Error “Unterminated conditional directive” in cross-referencing headers

The problem is solved.

I just moved one of #include from the header to the source file, and it has worked.

plotmarker.h

#ifndef PLOTMARKER_H
#define PLOTMARKER_H

#include <QObject>

class Plotter;

class PlotMarker : public QObject
{
    // ...
    Plotter* m_attachedPlot;    
    // ...
};

#endif // PLOTMARKER_H

// …

plotmarker.cpp

#include "plotmarker.h"
#include "plotter.h"
// ...

Leave a Comment

tech