0

我有非常简单的代码:

主文件

#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:错误:“配置”没有命名类型

这里有什么问题?

4

1 回答 1

0

我找到了解决方案 config.h => myconfig.h

于 2018-04-19T10:10:02.827 回答