Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/129.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Arduino巨型类重新定义错误_C++_Arduino - Fatal编程技术网

C++ Arduino巨型类重新定义错误

C++ Arduino巨型类重新定义错误,c++,arduino,C++,Arduino,我有基本的简单LCD Hello World草图: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { lcd.begin(16, 2); lcd.print("hello, world!"); } void loop() {

我有基本的简单LCD Hello World草图:

#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
 lcd.begin(16, 2);
 lcd.print("hello, world!");
}

void loop() {
     lcd.setCursor(0, 1);
     lcd.print(millis()/1000);
}
如何通过以下错误消息判断哪些文件缺少if定义

为“Arduino Mega ATmega1280”编译“LCDtest”

Stream.h:包含在中的文件中 h:从 阿杜伊诺:从 立法会二题:从 Print.h:39:错误:重新定义“类打印” Print.h:39:错误:“类打印”的先前定义 Stream.h:包含在中的文件中 h:从 阿杜伊诺:从 liquidcystal.cpp:from Print.h:39:错误:重新定义“类打印” Print.h:39:错误:“类打印”的先前定义 编译错误


安装的Print.h文件是否具有ifndef指令?
#ifndef Print_h 
#define Print_h