delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/09/11:10:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Fri, 9 Jul 2004 17:10:02 +0200
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Reply-To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: Esse keine toten Tiere
Message-ID: <1671417278248.20040709171002@familiehaase.de>
To: Maarten Boekhold <boekhold AT emirates DOT net DOT ae>
CC: cygwin AT cygwin DOT com
Subject: Re: Building DLL
In-Reply-To: <40EEAFDC.6060100@emirates.net.ae>
References: <40EC1ECB DOT 2010700 AT emirates DOT net DOT ae> <441249594902 DOT 20040707183519 AT familiehaase DOT de> <40EEAFDC DOT 6060100 AT emirates DOT net DOT ae>
MIME-Version: 1.0

Maarten wrote:



> Gerrit P. Haase wrote:

>> You don't need .def files on Cygwin.  Just add -no-undefined to
>> libxyz_LDFLAGS.

> OK, I'm making progress with getting XFCE to compile under cygwin (with
> help of one of the XFCE developers), but now we're running into the 
> following:

> XFCE has a plugin mechanism, based on shared libraries. These plugins 
> use functions/symbols from the program that they 'plug in to'. I.e. if I
> have appA, and libB is a plugin for appA, then libB contains calls that
> are defined in appA.

> How do I get this to work under cygwin? Obviously I can't link libB 
> against appA!

Put all the functions into a library.  Link the application and the
modules against this library (building only the appA's main() into
the executable).

It was also reported that creating an import library (or stub library)
for the executables functions is sufficient if it is linked in, IIRC it
was the same problem with naim & plugins.  Maybe there are some useful
hints in the naim sources.


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


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

- Raw text -


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