Coder Social home page Coder Social logo

Comments (5)

Modersi avatar Modersi commented on July 22, 2024

from telegrambotapi.

silversheart avatar silversheart commented on July 22, 2024

Подивився ваш профіль в Лінкедінє і вирішив переписати повідомлення рідною мовою.
Тут ще й коду то немає. Перед тим як підключити бібліотеку до проєкту, її ж треба зібрати з джерел! Я клоню проєкт, відкриваю його в Qt намагаюсь компілювати і отримую власне сабж. До коду справа ще не дійшла. Спочатку думав, що компілятор не підтримує версію С++ - зібрав GCC останньої версії - нічого не змінилось. Думаю знайду в документації С++ що це за темплейт, може одруківка, може зможу використати щось рідне з
Qt - так і в документації немає такого _Is_iterator_v. Ось і прошу поради, що треба зробити щоб бібліотека зкомпілювалась.

from telegrambotapi.

Modersi avatar Modersi commented on July 22, 2024

from telegrambotapi.

kleuter avatar kleuter commented on July 22, 2024

Same problem guys, had to comment this requires line
requires std::_Is_iterator_v

Seems like _Is_iterator_v is a Visual Studio thing

from telegrambotapi.

kleuter avatar kleuter commented on July 22, 2024

Additionally, there's also (also Ubuntu 23.04)

/home/me/downloader-bot/TelegramBotAPI/./Internal/Utility/QHttpMultiPartInserter.hpp:7:119: error: cannot declare member function ‘static std::unique_ptr<QHttpMultiPart> Utility::QHttpMultiPartInserter::make(std::span<QString>, Args&& ...)’ to have static linkage [-fpermissive]
    7 | static std::unique_ptr<QHttpMultiPart> Utility::QHttpMultiPartInserter::make(std::span<QString> keys, Args&&... values) {
      |                                                                                                                       ^
In file included from /home/me/downloader-bot/TelegramBotAPI/Internal/Utility/QJsonObjectInserter.h:80,
                 from /home/me/downloader-bot/TelegramBotAPI/Bot.cpp:4:
/home/me/downloader-bot/TelegramBotAPI/./Internal/Utility/QJsonObjectInserter.hpp:8:96: error: cannot declare member function ‘static QJsonObject Utility::QJsonObjectInserter::make(std::span<QString>, Args&& ...)’ to have static linkage [-fpermissive]
    8 | static QJsonObject Utility::QJsonObjectInserter::make(std::span<QString> keys, Args&&... values) {
      |                                                                                                ^
gmake[2]: *** [TelegramBotAPI/CMakeFiles/TelegramBotAPI.dir/build.make:90: TelegramBotAPI/CMakeFiles/TelegramBotAPI.dir/Bot.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:170: TelegramBotAPI/CMakeFiles/TelegramBotAPI.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
me@pi5:~/downloader-bot/TelegramBotAPI$

from telegrambotapi.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.