Global struct in Function?

I have made my own data structure, and I need to create a variable with that structure. My problem is, is that I need to declare the variable so that it can be accessed globally, but it needs to be declared in a functions, because it is an array, thats size is determined by the user. When I put static i front of declaring it I get errors that the size of my variable is too large. Is there any other way I can declare a data structure in a function, but have it accessed globally?
You can pass the variable around to the different functions that require the object, probably by-reference.
Ah, okay, thanks you very much.
Topic archived. No new replies allowed.