dlopen: Added dlerror info if dlopen fails to open.

This commit is contained in:
Бранимир Караџић
2022-09-15 22:25:48 -07:00
parent ab34c808e8
commit 7ddf616ac9

View File

@@ -185,7 +185,9 @@ namespace bx
BX_UNUSED(_filePath);
return NULL;
#else
return ::dlopen(_filePath.getCPtr(), RTLD_LOCAL|RTLD_LAZY);
void* so = ::dlopen(_filePath.getCPtr(), RTLD_LOCAL|RTLD_LAZY);
BX_WARN(NULL != so, "dlopen failed: \"%s\".", ::dlerror() );
return so;
#endif // BX_PLATFORM_
}