This is the mail archive of the cygwin@cygwin.com 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]

Re: Problem with dlopen


At 02:51 PM 4/5/2002, Frank Motta wrote:
>The following code returns Win32 error 126 - this is the same error
>I get if I try a file which does not exist.
>
>What is going wrong (operator malfunction - I'm sure!)
>please help
>             strncat(mod_file_name, LIB_EXT, LIB_EXT_LEN + 1);
>             // FJM handle = dlopen(mod_file_name, (RTLD_NOW | RTLD_GLOBAL));
>             handle = dlopen(mod_file_name, (DLOPEN_MODE));
>             if ((err = dlerror()) == NULL) { break; }


$ net helpmsg 126
The specified module could not be found.

With the information you've given, one can only say mod_file_name is not
where you say it is.  If that's the issue, it's not a Cygwin problem and
would be off-topic for this list.  If that's not the problem, you'll need 
to provide more information about the specifics.  Results from debugging
into Cygwin or even output from running your program under strace would be 
useful to further any pertinent discussion.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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