On Thu, Oct 06, 2005 at 08:06:17PM +0200, Jan Nieuwenhuizen wrote: >Igor Pechtchanski writes: > >> On Thu, 6 Oct 2005, Jan Nieuwenhuizen wrote: > >>> AFAIK, on Cygwin .la files that are used by dlopen need to be in usr/bin. >> >> IIUC, dlopen() uses LD_LIBRARY_PATH, which can contain /usr/lib. The only >> reason the DLLs are in /usr/bin is to make sure the Windows loader finds >> them. IOW, I don't think you need the .la files in /usr/bin. > >Indeed, I wouldn't think that too. However > > 20:01:55 [EMAIL PROTECTED]:~ > $ guile > guile> 20:02:00 [EMAIL PROTECTED]:~ > $ mv /bin/libguilereadline-v-12.la /lib/ > 20:02:25 [EMAIL PROTECTED]:~ > $ guile > ERROR: In procedure dynamic-link: > ERROR: file: "libguilereadline-v-12", message: "dlopen, Win32 error 126" > [2]20:02:27 [EMAIL PROTECTED]:~ > $ LD_LIBRARY_PATH=/bin guile > ERROR: In procedure dynamic-link: > ERROR: file: "libguilereadline-v-12", message: "dlopen, Win32 error 126" > [2]20:02:42 [EMAIL PROTECTED]:~
Either you're using an older version of cygwin or that's not a cygwin error. It looks like something is calling LoadLibrary directly rather than using the cygwin dlopen(). Cygwin was changed in 1.5.18 to use strerror style output in the result of dlerror. cgf