diff --git a/src/os.cpp b/src/os.cpp index 5d85880..9939457 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -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_ }