OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) C++ Build errors with Debian Bookworm

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #77417

    ericwampner
    Participant

    PI Zero W
    Nov 10 2023 Raspbery PI OS 32bit port of Debian Bookworm

    In file included from OpenSprinkler.h:29,
    from main.cpp:26:
    utils.h:46:1: error: reference to ‘byte’ is ambiguous
    46 | byte file_read_byte (const char *fname, ulong pos);
    | ^~~~

    After reading a bit I realized that the idiot gods of C++ had decided to break anybody’s use of byte, I modified the build to use
    -std=c++14 and now I get it compiled.

    #77421

    Ray
    Keymaster

    Update your repository and build again. The fix is to add a -std flag in the build script. The fix has been in the os33 branch for a while and I just got it merged to the master branch today.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) C++ Build errors with Debian Bookworm