Skip to content

json.hpp - error: identifier '_json' preceded by whitespace in a literal operator declaration is deprecated - Ubuntu 25.04 #965

@tomekit

Description

@tomekit

I've just upgraded from 24.04 to 25.04.

flutter build linux fails with:

/home/tom/data/Kapsa/flutter-drive/linux/flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/include/json.hpp:24392:35: error: identifier '_json' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]
/home/tom/data/Kapsa/flutter-drive/linux/flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/include/json.hpp:24400:49: error: identifier '_json_pointer' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]
/home/tom/data/Kapsa/flutter-drive/linux/flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/include/json.hpp:24464:58: error: identifier '_json' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]
/home/tom/data/Kapsa/flutter-drive/linux/flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/include/json.hpp:24465:58: error: identifier '_json_pointer' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]
Building Linux application...

I am not exactly sure if that this is causing the issue, but I've noticed that Ubuntu 25.04 runs now: libjsoncpp26 (previously libjsoncpp25) and newer: libjsoncpp-dev, current version 1.9.6-3, previously 1.9.5-6build1

I am not sure at this stage if I shall try to "force install" older version or perhaps there is some way to fix this issue.

Thanks for your help!

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