Код: Выделить всё
#include
#include
int main() {
const char* lib_path = "./libTest.so";
// Load the shared library
void* handle = dlopen(lib_path, RTLD_NOW);
if (!handle) {
// If dlopen fails, print the error
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79200281/oserror-test-so-undefined-symbol-znst13runtime-errord2ev-when-loading-from[/url]
Мобильная версия