B20: dlopen() of multiple libraries emits a warning message

Stanley Gambarin stanley@advancel.com
Sun Feb 28 12:54:00 GMT 1999


Greetings:

a test case:
#include <dlfcn.h>
#include <stdlib.h>
int main()
{
  void *h1, *h2;

  h1=dlopen("console.dll", RTLD_LAZY);
  h2=dlopen("uart.dll", RTLD_LAZY);
  dlclose(h2);
  dlclose(h1);

  return(0);
}

when run, emits a warning message:
WARNING: previous dlopen of U:\tmp\uart.dll wasn't correctly performed

This message is coming from
    winsup/dll_init.cc::DllList::currentDlOpenedLib  function.  Not
being too
familiar with the sources, I am guessing that this function is necessary
for
properly loading a DLL which has other DLLs in its dependency list.
However,
invoking it from dlopen() function call may not be a proper solution.
Hope that
somebody can provide a solution for this problem by the next release.

-- stanley



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list