delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/27/21:42:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <089c01c15f52$50ba53f0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Charles Wilson" <cwilson AT ece DOT gatech DOT edu>,
"Stephano Mariani" <sk DOT cygml AT btinternet DOT com>
Cc: <cygwin AT cygwin DOT com>
References: <Pine DOT GSO DOT 4 DOT 40 DOT 0110272053580 DOT 27218-100000 AT medulla DOT ibb DOT gatech DOT edu>
Subject: Re: Some dll questions
Date: Sun, 28 Oct 2001 12:46:07 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 28 Oct 2001 01:50:26.0361 (UTC) FILETIME=[EA293290:01C15F52]

----- Original Message -----
From: "Charles Wilson" <cwilson AT ece DOT gatech DOT edu>
> On Sun, 28 Oct 2001, Stephano Mariani wrote:
> > I managed to build functional dlls, but I still have a few
questions...
> >
> > I am familiar with shared libraries on linux, and am wondering
whether most
> > of the techniques still apply... specifically:
> >
...

> > 2) If so, does it behave any differently?
>
> If so, it's a bug.

1 bug is known to date, no good solution has been thought of... The bug
is with linux you can resolve a symbol from a object, or any of its
dependencies, under win32 you cannot. So we need to recreate that
library search logic, or have evry library forward every symbol from
every dependent library - urk.

> > 3) Also, does it work with the -mno-cygwin flag too?
>
> Probably not.  cygwin1.dll provides those wrappers.  If you want a
native
> program, you'll need to use the Windows LoadLibrary() functions
directly.
> (Also note that the DLL's you're loading must all be compiled with
> -mno-cygwin, as well as your program.  Otherwise, you'll have part of
your
> code depending on msvcrt.dll for runtime services, and part of your
code
> depending on cygwin1.dll for runtime services.  Badness will ensue.)

You can also look into libtldlopen - libtool. It has mingw (-mno-cygwin)
support.

Rob


--
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