#include "reg52.h" sbit LED1=P2^0; void main() { LED1=0; while(1) { } }
你没有把代码添加到项目里。source group点右键把文件加入
文件加到工程里面