2

我正进入(状态

Error[128]   C:\Program Files\PICC\drivers\string.h 34 : A #DEVICE required before this line

编译简单的 helloWorld.c 时

#include <stdio.h>

void main()
{
printf("Hi");

}

我正在通过命令编译它"ccsc +FM C:\vamshi\test\cFiles\Sample.c"

我正在使用CCS, Inc. PCWHD 版本 4

4

1 回答 1

2

参考用户手册;#DEVICE 指令定义编译器的行为以适应各种 PIC 架构和指令集变体。但是,您通常不会将此指令直接放在您的代码中,而是#include将其放在适合您的设备头中。您尚未具体说明您使用的是什么部分,但例如:

#include <pic16c63a.h>
于 2013-04-12T18:11:38.633 回答