Why does this work in C, but not C++? When compiled as a .c-file, it works, but not as a C++-file.
A = func();
It says can't cast (void *) to (void struct *) ... or something like that.
If you can't solve it now, I can give some more hints.