From 7ddf616ac976e567eb969809993725900f2cabba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 15 Sep 2022 22:25:48 -0700 Subject: [PATCH] dlopen: Added dlerror info if dlopen fails to open. --- src/os.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_ }