dereferencing pointer to incomplete type.
I get that when trying to compile my code.
the definition for matrix isCode:struct matrix *newmat(int row, int column) { ... struct matrix *mat; mat->rows = row; (this and the following two lines give me the error) mat->columns = column; mat->elements = &anarray ...
Code:struct matrix() { int rows; int columns; int *elements; }