Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Error on PlatformIO "multiple definition of `EthernetWebServer::.." #28

@EmperorArthur

Description

@EmperorArthur

Hello,

Due to the way the code is written, #include <EthernetWebServer.h> can never be used in a header file.

It always results in a multiple definition error.

I believe the problem can be traced to these two lines in "EthernetWebServer.h"

#include "EthernetWebServer-impl.h"
#include "Parsing-impl.h"

It may be better to convert the "*-impl.h" files to instead be ".cpp" files, which are linked at compile time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions