- Joined
- Jan 11, 2023
- Messages
- 9
- Reaction score
- 0
file 1
file 2
file 3
i can use
in file 1 and file 2, without error, and runs fine, but when i try to use
in file 3, it gives
and what errored, was copied/pasted from a class that ran fine.
why?
Code:
class CClass1;
class CClass2
{
private:
CClass1 *m_class1;
}
file 2
Code:
class CClass1;
class CClass3
{
private:
CClass1 *m_class1;
}
file 3
Code:
class CClass1;
class CClass4
{
private:
CClass1 *m_class1;
}
i can use
Code:
class CClass1;
in file 1 and file 2, without error, and runs fine, but when i try to use
Code:
class CClass1;
in file 3, it gives
Code:
error: invalid use of incomplete type ‘class CClass1’
and what errored, was copied/pasted from a class that ran fine.
why?