Re: error: 'std::shared_ptr' has not been declared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 24.10.2022 um 13:14 schrieb Martin Gansser:
when compiling QMPlay2-22.10.23 [1] on f35 and f36 i get this error message:
[...] In file included from /home/martin/rpmbuild/BUILD/QMPlay2-22.10.23/src/qmplay2/QMPlay2OSD.cpp:19:
/home/martin/rpmbuild/BUILD/QMPlay2-22.10.23/src/qmplay2/QMPlay2OSD.hpp:74:53: error: 'std::shared_ptr' has not been declared
    74 |     static std::unique_lock<std::mutex> ensure(std::shared_ptr<QMPlay2OSD> &osd);
       |                                                     ^~~~~~~~~~
> [...]
/home/martin/rpmbuild/BUILD/QMPlay2-22.10.23/src/qmplay2/QMPlay2OSD.hpp:30:1: note: 'std::shared_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'?
    29 | #include <mutex>
   +++ |+#include <memory>
> [...]
How can I solve this ?


Hi Martin,

as supposed by the error message, the include statement
#include <memory>
is missing in header file QMPlay2OSD.hpp. It has recently been added to the upstream repository too:
https://github.com/zaps166/QMPlay2/commit/def70bfd9c36a1b2982a4c0bc629a6300c867ea8

Regards,
Martin
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux