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: <3FF291AB.20607@keypro.fi>
Date: Wed, 31 Dec 2003 11:06:51 +0200
From: Jani Tiainen <jani DOT tiainen AT keypro DOT fi>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4
MIME-Version: 1.0
To: Cygwin List <cygwin AT cygwin DOT com>
Subject: Re: DLL and external symbols
References: <3FF1EFB3 DOT 5000509 AT keypro DOT fi> <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20031230230034 DOT 03baab08 AT 127 DOT 0 DOT 0 DOT 1> <3FF26A27 DOT 7090301 AT keypro DOT fi>
In-Reply-To: <3FF26A27.7090301@keypro.fi>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Jani Tiainen wrote:

> Larry Hall wrote:
> 
>> At 04:35 PM 12/30/2003, Jani Tiainen you wrote:
>>
>>> Hi,
>>>
>>> I'm sure that this has been answered several times, but I'll ask 
>>> again because couldn't find any solution by myself.
>>>
>>> I would like to build DLL (or any other sort of library) that refers 
>>> to external symbols in main application.
>>>
>>> Now how I can get this working, or is it possible at all?
>>
>> It's possible but you have to move "funcInMain()" into the DLL with 
>> "funcInMyLib()" or into another DLL.  That's the straight-forward answer.
> 
> Yes, that one I knew already. Problem isn't actually function, in my 
> real case it's more like having some globals that libraries should be 
> able to read.

There exists one, non-libtool solution to similiar problem:

http://mail.gnu.org/archive/html/libtool/2002-10/msg00145.html

Now, how to libtoolize this solution?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/