Original Post
I have trying to fix a problem with one of my variables. I have tried declaring it like so, as a global variable:
terrainbox terrain1[map_height][map_width];
If I declare it in a funtion then it has no problems at all but I need it to be global and it is giving me the following error:
error: array bound is not an integer constant before ‘]’ token
If more information is needed just ask.
terrainbox terrain1[map_height][map_width];
If I declare it in a funtion then it has no problems at all but I need it to be global and it is giving me the following error:
error: array bound is not an integer constant before ‘]’ token
If more information is needed just ask.