Mail Archives: djgpp/1998/02/17/07:10:22
>I think you just need to declare one class name like so:
>
>class B;
>
>then define them:
Well, that fixed the problem in that program but in my actual program, I
still get the error "world.h:22: field `m_pTilesBase' has incomplete type".
The code (in world.h -- some stuff snipped):
class Tile;
class World
{
public:
World();
~World();
private:
Tile *m_pTilesBase[][];
Tile *m_pTilesFringe[][];
Tile *m_pTilesObject[][];
};
I'm not sure if the problem is with the multiple source files or because
they are pointers to arrays.
Thanks,
Riley
hitzl AT usa DOT net
- Raw text -