This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.7.5: Problem with dlopen and relative path


Hello,

As I see in source of dlfcn.cc, dlopen() should override LoadLibrary's automatic adding of a ".dll" suffix,
but it's behaving strangely

I have such files: 
/home/me/project/myexe.exe
/home/me/project/lib1.dll
/home/me/project/subdir/lib2.dll
/home/me/project/subdir/lib3 (without .dll)

My current directory is /home/me/project/

I try to use dlopen() in myexe.exe with relative path:

1) dlopen("subdir/lib2") - NOT FOUND (If this OK, then why failed dlopen("subdir/lib3")?)
2) dlopen("subdir/lib3") - NOT FOUND (why?)
3) dlopen("subdir/lib2.dll") - SUCCESS (works fine)
4) dlopen("lib1") - SUCCESS (why it didn't override LoadLibrary's adding ".dll" ?) 
5) dlopen("lib1.dll") - SUCCESS 

Are the cases 1, 2 and 4 bugs?
With old Cygwin release (~year ago) using dlopen("subdir/lib2") worked fine

Best regards,
Mansur Mamkin

Attachment: cygcheck.out
Description: Binary data

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]