delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/31/15:58:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Fri, 31 Mar 2000 10:57:29 -1000 (HST)
From: Jimen Ching <jching AT flex DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: missing prototypes in io.h
In-Reply-To: <200003312041.OAA05710@hp2.xraylith.wisc.edu>
Message-ID: <Pine.BSI.4.05L.10003311047320.11338-100000@flex.com>
MIME-Version: 1.0

On Fri, 31 Mar 2000, Mumit Khan wrote:
>My mno-cygwin howto provides some insights into this issue.

I'll take a look at that.

>If you're trying to come up with a way to "mix and match" Cygwin and
>Mingw runtime, that's not doable, sorry.

>I have a feeling I'm not answering your question, but then again, I don't
>know what your question is.

The above statement answers my question.  I was under the impression that
it was doable.  Thanks for clearing up my misconception.

I have a follow up question.  The reason why I wanted to compile the
library as Win32 was because of dynamic library loading.  It uses
LoadLibrary and GetProcAddress.  I know cygwin has dlopen and dlsym.  But
can it take a libxyz.dll as parameter, or do I have to convert this .dll
to a .so?  This is the main reason why I tried to mix and match.

I tried using dlopen and it failed for some reason.  Instead of trying to
determine the problem, I went the above route instead.  What I'm looking
for now is confirmation that dlopen("libxyz.dll", RTLD_LAZY) does what
it should have done.  Same with dlsym.  If they are supposed to work, then
I'll look into why the library is failing.  Note, dlopen didn't actually
fail, dlsym also didn't fail.  Only when I tried to call the resulting
function pointer did it not work.

Thanks again for you quick response.

--jc
--
Jimen Ching (WH6BRR)      jching AT flex DOT com     wh6brr AT uhm DOT ampr DOT org


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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