Expected symbol problems with this function declaration
Posted
by
Derek
on Stack Overflow
See other posts from Stack Overflow
or by Derek
Published on 2012-07-07T15:06:31Z
Indexed on
2012/07/07
15:15 UTC
Read the original article
Hit count: 183
I am just getting back into the C programming realm and I am having an issue that I think is linker related.
I am using cmake for the first time as well, so that could be adding to my frustration.
I have included a third party header file that contains a typedef that my code is trying to use, and it has this line:
typedef struct a a_t
so my code has
a_t *var;
//later.....
var->member;// this line throws the error
which throws the
error: dereferencing pointer to incomplete type
So am I just missing another include file, or is this a linker issue? I am building this code in QtCreator and using cmake. I can dive on a_t to see that typedef declaration in the included header, but I can't seem to dive on "struct a" itself to see where it's coming from.
Thanks
© Stack Overflow or respective owner