Storage size of ‘ ’ isn’t known

Hi! My shell gives me this error, and i don't know why, the code is following.
labFunctions.h :
1
2
3
4
5
6
7
8
9
10
11
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
using namespace std;
#define N 13
#define size 3
#define C 25
void initLabyrinth(char lab[][N],int);
void dig(int, char lab [][N]);
void printView (char lab [][N],int,int,int);

Main:
1
2
3
4
5
6
7
8
9
10
#include"labFunctions.h"
int main () 
{
        char labyrinth [][N];
	int x=((N-2)/2)+1; 
	int y=((N-2)/2)+1;
  	initLabyrinth(labyrinth, C);
    	printView(labyrinth, x, y, size);
    	return 0;
}
Last edited on
At line 4:
char labyrinth [][N];
This is allocating storage for the array called labyrinth. How much space does it require?
I solved on my own this problem putting all the headers in one main,
thank u anyway
Topic archived. No new replies allowed.