C语言编译 gcc -c my_struct.c 报错:my_struct.c:3:1: 错误:expected ‘;’, identifier or ‘(’ before ‘int’ int mai
原因:是因为我在头文件订单struct student {}的时候忘记在最后加;分号了
C语言编译 gcc -c my_struct.c 报错:my_struct.c:3:1: 错误:expected ‘;’, identifier or ‘(’ before ‘int’ int mai
原因:是因为我在头文件订单struct student {}的时候忘记在最后加;分号了