This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
B20: dlopen() of multiple libraries emits a warning message
- To: cygwin@sourceware.cygnus.com
- Subject: B20: dlopen() of multiple libraries emits a warning message
- From: Stanley Gambarin <stanley@advancel.com>
- Date: Sun, 28 Feb 1999 12:58:35 -0800
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Organization: Advancel Logic Corp.
- Sender: cygwin-owner@sourceware.cygnus.com
- Sender: fuzzy@advancel.com
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