看板 ASM 關於我們 聯絡資訊
最近買了一本C與8051-使用keil c的書,親自每個範例做一次.. 其中有一個範例怪怪的... 麻煩高手幫忙看一下 #include <stdio.h> void main(void) { byte a; a=func(); } byte func(void) { byte i; i++; return i; } ======= MAIN.C(5): error C202: 'byte': undefined identifier MAIN.C(5): error C141: syntax error near 'a' MAIN.C(6): error C202: 'a': undefined identifier MAIN.C(9): error C129: missing ';' before 'func' Target not created -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.195.6.78
sunneo:typedef unsigned char byte; 09/09 22:45
sunneo:一個byte是一種unsigned char 09/09 22:46
sunneo:意思就是說 你忘了作到自定義 09/09 22:50
sunneo:也許有一個標頭檔忘了include 像是REG51.h REG51X.h.. 09/09 22:51
MasterChang:跟8051或ASM有什麼關係? 09/09 22:54