This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | MSYS2: in IDE only dlopen() fails on relative paths | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | -- Other -- | Assignee: | Alexander Simon <alexvsimon> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Windows 8.1 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | test project |
It seems bug was fixed while fixing bug #269974 |
Created attachment 163830 [details] test project This test scenario fails on Windows/MSYS2 only. Executable file works nicely without IDE, but in NetBeans 'dlopen' fails. Scenario: - unpack attached project - build project - launch project ==> "Library not found!!!" message appears I use such code in order to check file: FILE* f = fopen("dlopenLibrary/libtestlibrary.dll", "r"); if (f == NULL) { puts("File not found!!!\n"); return 0; } else { fclose(f); } void* lib = dlopen("dlopenLibrary/libtestlibrary.dll", RTLD_LAZY); if (lib == NULL) { puts("Library not found!!!\n"); return 0; }