Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Andrej Falout <afalout@xtra.co.nz>
Subject: Problem linking a dll that uses symbols defined in executable
Date: Sat, 12 Oct 2002 19:38:38 +1300
Lines: 28
Message-ID: <MPG.18128a97d98e5f4c98969e@news.gmane.org>
NNTP-Posting-Host: 210-86-52-5.jetstart.xtra.co.nz
X-Trace: main.gmane.org 1034469670 16499 210.86.52.5 (13 Oct 2002 00:41:10 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Sun, 13 Oct 2002 00:41:10 +0000 (UTC)
X-Newsreader: MicroPlanet Gravity v2.60

Hello *,

I have a program (executable), that uses two types of DLL libraries:

1) one that is linked with executable, as -l on gcc command line 
2) several dll's that are loaded from 1) using dlopen()

Problem:

Some dll's of type 2 use functions/variables that are defined in the 
EXECUTABLE.

When I try to link this type of dll's, I get bunch of undefined symbols, as 
expected. What one would do in this case, if referenced symbols where in 
another shared library (dll), is to link against that dll's export library 
(.dll.a) But they are in EXECUTABLE, meaning that I cannot make a export 
library...

Can somebody please point me in right direction?

Much appreciated,


-- 
Yours, Andrej Falout, http://www.falout.com/disclaimer.html
Visit the OpenSource alternative, Aubit 4gl: http://aubit4gl.sourceforge.net
PLEASE NOTE: All HTML email sent to me WILL BE DELETED AUTOMATICALLY WITHOUT 
READING.



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

