Vector Array does not work

Hi,

I wanted to define in my ofApp class the following:

class ofApp : public ofBaseApp{
    
   //variables
   vector<circle> circ (0);

   [the normal stuff ...]

};

But this results in:

src/ofApp.h|33|error: expected identifier before numeric constant|
src/ofApp.h|33|error: expected ‘,’ or ‘...’ before numeric constant|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 2 seconds) ===|

I have test my struct circle works fine. I am only not able to define a vector, but just in this class, in setup it works, although I have double check it with my C++ book. I have included

#include <vector>

as well.

I am looking forward to hear from you, would be nice if someone could help me.

King regards,

Greenality

you can’t call the constructor like that in the declaration in the .h, you can only declare the variable like:

vector<circle> circ;

then initialize it in setup