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 Message-ID: <40F0E6AA.6080202@luukku.com> Date: Sun, 11 Jul 2004 10:05:14 +0300 From: Jani tiainen User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) MIME-Version: 1.0 To: Cygwin List Subject: Re: Building DLL 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> In-Reply-To: <40EEAFDC.6060100@emirates.net.ae> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Maarten Boekhold 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! Done this, been there. And it's all possible.. =) You can use DLLTOOL to produce .def files from .exe if needed so you don't have to do them by hand. But in most cases you just need few funcs or variables it's simpler to write .def by hand. -- Jani Tiainen -- 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/