I have my class:
class Exec {
static Process* procs_table[];
public:
Exec(int num, info_init_proc* proc);
};
info_init_proc is a custom struct with information necessary for initializing the Process object
And try to create the constructor as below:
Exec::Exec(int num, info_init_proc* proc) {
int i;
for (i = 0; i < num; i++) {
Exec::procs_table[i] = new Process(proc[i]);
}
}
It can be compiled, but when i build i get the "Undefined symbol procs_table" error.
What should be modified ?