Skip to content

Compile issue using Arduino IDE 1.8.13 #18

@theo-stidsen

Description

@theo-stidsen

When I include the library in my code, I'm unable to compile...

In file included from C:\Users\stidsen\Documents\Arduino\libraries\ArduinoHttpServer\src\internals\HttpResource.cpp:10:0: C:\Users\stidsen\Documents\Arduino\libraries\ArduinoHttpServer\src\internals\HttpResource.hpp:23:24: error: 'String' does not name a type HttpResource(const String& resource); ^~~~~~

I worked my way around the problem by:

  1. Changing the order of #include "FixString.hpp" and #include "Arduino.h" in HttpField.hpp
  2. Replaced #include <WString.h> by #include <Arduino.h> in HttpResource.hpp

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions