Taking arrays of pointers in function prototypes in header files: function declared void
<p>I'm a bit new to programming and ran into these errors tracing to the function prototype in the function header file and I think it may have something to do with the array of pointers it's getting.</p>

<p>error variable or field 'clean_up' declared void</p>

<p>error 'Button' was not declared in this scope</p>

<p>error 'buttons' was not declared in this scope</p>

<p>error expected primary variable before ']' token</p>

<pre><code>    //Function.h

    #include "SDL/SDL.h"
    #include "SDL/SDL_image.h"
    #include &lt;string&gt;
    #include "functions.h"
    #include "globals.h"
    #include "Button.h"
    #include &lt;fstream&gt;

    void clean_up( Button *buttons[] ); // errors here

    //Function.cpp
  void clean_up( Button *buttons[] )

    {
        SDL_FreeSurface( background );
        SDL_FreeSurface( X );
        SDL_FreeSurface( O );

        for( int t = 0; t &lt; TOTAL_BUTTONS; t++ )
        {
            delete buttons[ t ];
        }

        SDL_Quit();
    }
    //Button.h
    class Button
    {
    private:

    SDL_Rect box;
    SDL_Surface *sprite;

    public:


        bool in_use;
        bool xoro;
        int p_id;


Button( int x, int y, int id );
~Button();

void handle_events();

void show();

};

//Button.cpp

Button::Button( int x, int y, int id )
{
    box.x = x;
    box.y = y;
    box.w = 120;
    box.h = 120;
    in_use = false;
    p_id = id;
}
Button::~Button()
{
    SDL_FreeSurface( sprite );
}
</code></pre>

<p>I wasn't really sure where to look for a solution so any help is appreciated. Thanks.</p>
