1
I get this mistake
error: field has incomplete type
by doing something like:
class MinhaClasse
{
MinhaClasse teste; // Erro aqui
};
I already tried to add this line at the beginning of the code class MinhaClasse;
, but it didn’t work.
I understand the mistake, but I don’t know how I can fix it.
what you really want to do?
– rLinhares
@rLinhares The above code is just an example of the error, the complete code is very large, so it did not include in the question
– isaque
I didn’t even know that
C
had classes. It would not be C++ ?– Guilherme Nascimento
What is the purpose of
MinhaClasse
?– lazyFox
@lazyFox This is just one example.
– isaque