Hello everybody!
I got the following error while trying to check the code for Clever Frog:
error: incomplete type dereference pointer
The "full code" is located on pastebin.com - here (it will not expire). But I think that with the explanation below, everyone can understand. Note. I have not yet implemented a function that will remove allocated memory and other things.
I have a structure defined in file 1.c:
#include "1.h"
...
struct test {
int a;
};
...
I have 1.h wicth using typedef:
...
typedef struct test testT;
...
Then I have a function that has a parameter in it depending on testT, which is located in 2.c:
...
void funcTest(testT **t, int *size, ..){
createMem(t,*size);
t[0]->a = 0;
}
...
The 2.h file is as follows:
...
void funcTest(testT **t, int *size, ..);
...
testT * var , :
...
testT *varTest; int size;
funcTest(&varTest, &size);
...
, , struct test 1.h ( struct test 1.c - ). , , t [0] → a.
"", :( , - , , - - , : D
!