defining wxArray inside a function
===

I am trying to use wxarray.when i added the following macro inside a function i got the errors shown.I am just a newbie.What is the right way to use this macro inside a function 

`WX_DEFINE_ARRAY_DOUBLE(double,lin);`

error:

    error: non-local function 'rfc(double*, double*, wxBitmap, double)::lin::reverse_iterator operator+(int, const rfc(double*, double*, wxBitmap, double)::lin::reverse_iterator&)' uses local type 'const rfc(double*, double*, wxBitmap, double)::lin::reverse_iterator'

    error: can't define friend function 'operator+' in a local class definition





