Import file . h which has itself imported within this . h

Asked

Viewed 13 times

0

for example, in my file called. h I have the following:

#include <Arduino.h>
#include "Operador.h"

class Chamados
{
//code;
}

and in the file Operator. h I have:

#pragma once

#include <Chamado.h>
class Operador{
//code;
}

I understand that possibly with this I end up having a kind of recursion within the compiler, but is there a way to solve this? or should I change the structure of my code to avoid this?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.