Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualsmallGame

Posted 17 September 2013 - 06:54 PM

Hi,

 

#include "track.h"  // Include

 

class track; // forward declaration

You have to split in two files like you ve just tried. In brick.h you put the forward declaration and in brick.cpp you include brick.h and track.h. Then everything should work.


#1smallGame

Posted 17 September 2013 - 06:53 PM

Hi,

 

#include "track.h"  // Include then

 

class track; // forward declaration

You have to split in two files like you ve just tried. In brick.h you put the forward declaration and in brick.cpp you include brick.h and track.h. Then everything should work.


PARTNERS