我有非常简单的代码:
主文件
#include <Arduino.h>
#include "config.h"
Config c;
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
配置文件
#ifndef Config_h
#define Config_h
class Config{
public:
Config(){};
};
#endif
配置文件
#include "config.h"
当我尝试构建项目时,出现以下错误:
src\main.cpp:4:1:错误:“配置”没有命名类型
这里有什么问题?