keil中error: #70: incomplete type is not allowed——已解決!

    今天改寫程序,,在b.c文件中須要引入一個a.c中的結構體變量,,我在b.c中直接extern 這個結構體,,結果編譯時報錯error: #70: incomplete type is not allowed最後上網查找才知道結構體不能這樣引入。。數組     正確的引入方法是;編譯     1.在a.h中聲明這個結構體,,(結構體實體要在.h文件中)變量     2.在a.c中定義這個結
相關文章
相關標籤/搜索