Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Andrej Falout Subject: Problem linking a dll that uses symbols defined in executable Date: Sat, 12 Oct 2002 19:38:38 +1300 Lines: 28 Message-ID: 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 AT main DOT gmane DOT 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/