delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/05/15:17:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020405151025.026c7f00@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Fri, 05 Apr 2002 15:15:22 -0500
To: fmotta AT embedded-guru DOT com, <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Problem with dlopen
In-Reply-To: <45820.65.200.9.2.1018036312.squirrel@portal.embedded-guru.
com>
Mime-Version: 1.0

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 AT rfk DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019