I’m getting a linker error.
I have two classes that extends the AActor class: APool and APoolActor.
APoolActor has a class member which is a pointer to a APool object, APool has two pointers to APoolActor objects.
I forward declare the APoolActor class in the Pool.h file, and forward declare the APool class in the PoolActor.h file. I then do #include “PoolActor.h” in the Pool.cpp file, and #include “Pool.h” in the PoolActor.cpp file.
In the PoolActor.cpp i do this:
(‘MyPool’ being APoolActor’s pointer to a APool object, and ‘DeactivateThing(APoolActor thing)’ being a method in the APool class that takes in a APoolActor)
And this seems to cause the linker error. However if I changed the DeactivateThing method so that it takes no argumnets then there is no error. So I assume i’ve done something stupid here that im not aware of.
Here is the linker error: