F
Faay
Hi all,
I have an array of structure in file1.c which is defined as follows:
struct abc {
char* file_name;
unsigned int line_number;
} abc_table[TAG_MAX];
I need to use the tag_table in another file , say file2.c , so I write
the declaration in file1.h and include the header file1.h in file2.c :
#ifndef FILE1_H
#define FILE1_H
#define TAG_MAX 100
struct abc abc_table[TAG_MAX];
#endif
On compiling , I am getting an error "error C2148: total size of array
must not exceed 0x7fffffff bytes"
The only way I could get across this is to define the structure in the
header file and not in the c file. But then I don't want file2.c to know
whats inside this structure.How do I solve this problem .
Please help
Thanks
I have an array of structure in file1.c which is defined as follows:
struct abc {
char* file_name;
unsigned int line_number;
} abc_table[TAG_MAX];
I need to use the tag_table in another file , say file2.c , so I write
the declaration in file1.h and include the header file1.h in file2.c :
#ifndef FILE1_H
#define FILE1_H
#define TAG_MAX 100
struct abc abc_table[TAG_MAX];
#endif
On compiling , I am getting an error "error C2148: total size of array
must not exceed 0x7fffffff bytes"
The only way I could get across this is to define the structure in the
header file and not in the c file. But then I don't want file2.c to know
whats inside this structure.How do I solve this problem .
Please help
Thanks