Форумът не ми разрешава да напиша мнение, защото имало "повече от 2 линка", които аз лично не виждам никъде. Затова ще ти пратя отговора си на лични собщения, та дано стане поне там.
================================================================
Перевод:
Форум не разрешает отпарвить сообщение, так как содержится 2 ссылки, которых я не вижу. Отправил личным сообщением.
================================================================
И сообщение:
Сначала он не хотел компилироваться, потому что ему не хватало audacious/i18n.h, поэтому я удалил строку "#include <audacious/i18n.h>" из файл common.cpp, и теперь он возвращает другие ошибки, которые я не знаю, как исправить. Я знаю только основное программирование C#, но не и С++ или С++11. Я даже не знал, что есть С++11. ag
В началото сорсът не искаше да се компилира, защото не можеше да намери файл audacious/i18n.h. Затова махнах реда "#include <audacious/i18n.h>" от файла common.cpp и сега връща други грешки, които не знам как да оправя. Знам само базово програмиране за начинаещи на C#, но не и C++ или C++11. Даже не знаех, че има C++11.
g++ `pkg-config --cflags gtk+-3.0 libsoup-2.4 audacious` -O2 -g -Wall -Wextra -fPIC -std=c++11 -shared vk-plugin.cpp json11.cpp https-request.cpp `pkg-config --libs gtk+-3.0 libsoup-2.4 audacious` -o vk-plugin.so
In file included from vk-plugin.hpp:22,
from vk-plugin.cpp:20:
common.hpp:35:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
35 | void * operator new (size_t size) throw (std::bad_alloc) = delete; // this class is intended for stack allocations only
| ^~~~~
common.hpp:36:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
36 | void * operator new[] (size_t size) throw (std::bad_alloc) = delete;
| ^~~~~
vk-plugin.cpp: In function ‘GtkWidget* VK::get_widget()’:
vk-plugin.cpp:110:67: error: ‘_’ was not declared in this scope
110 | GtkWidget * linkButton = gtk_link_button_new_with_label(authUri, _("Get access token"));
| ^
vk-plugin.cpp: In function ‘json11::Json VK::parse_response(const char*)’:
vk-plugin.cpp:133:25: error: ‘_’ was not declared in this scope
133 | throw StringFormatter(_("Failed to parse response: %s"), err.c_str());
| ^
vk-plugin.cpp:138:25: error: ‘_’ was not declared in this scope
138 | throw StringFormatter(_("Failed to retrieve playlists from server: incorrect response"));
| ^
vk-plugin.cpp: In function ‘void VK::songs_response(bool, const char*, size_t, void*)’:
vk-plugin.cpp:145:9: error: ‘_’ was not declared in this scope
145 | error(_("Failed to retrieve songs from server"));
| ^
vk-plugin.cpp: In function ‘void VK::playlists_response(bool, const char*, size_t, void*)’:
vk-plugin.cpp:168:9: error: ‘_’ was not declared in this scope
168 | error(_("Failed to retrieve playlists from server"));
| ^
vk-plugin.cpp:182:36: error: ‘_’ was not declared in this scope
182 | state->playlists->emplace_back(0, _("My music"));
| ^
In file included from vk-plugin.hpp:22,
from https-request.hpp:22,
from https-request.cpp:20:
common.hpp:35:36: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
35 | void * operator new (size_t size) throw (std::bad_alloc) = delete; // this class is intended for stack allocations only
| ^~~~~
common.hpp:36:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
36 | void * operator new[] (size_t size) throw (std::bad_alloc) = delete;
| ^~~~~
make: *** [Makefile:19: vk-plugin.so] Грешка 1
Последняя строка вышеуказанного тега кода: Грешка (БГ) = Ошибка (РУС).
Intel Core i7-4770, Palit GTX 1660 Ti 6GB, Corsair 32GB DDR3-1600, Firefox, (rolling) Arch Cinnamon