I have big project in which appeared extremely incomprehensible mistake, after which I created a new project repeated it:
struct of project is simple:
main.cpp
first.h
second.h
first.h
#ifndef FIRST_H
#define FIRST_H
#include "second.h"
class first
{
public:
first();
};
#endif // FIRST_H
second.h
#ifndef SECOND_H
#define SECOND_H
#include "first.h"
class second
{
public:
second();
};
#endif // SECOND_H
Everything is quite logical, but Qt Creator thinks quite differently:
D:\WinFiles\Documents\QT\DELME1\DELME1\second.h:1: error: unterminated conditional directive
I am a bit at a loss case as for inheritance this construction is needed