C: “invalid use of undefined type ‘struct X’ & dereferencing pointer to incomplete type” errors

后端 未结 5 1852
天命终不由人
天命终不由人 2021-01-18 04:18

I\'ve been perusing similar questions to mine for a couple of days but still haven\'t found a solution. Thanks any any help:

I have two files, one containing methods

5条回答
  •  一整个雨季
    2021-01-18 04:36

    Move the struct fraction definition to "fraction.h" and

    #include "fraction.h"
    

    in both "fraction.c" and "matrix.c"

提交回复
热议问题