X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_20,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A1C120F.8040808@gmail.com> Date: Tue, 26 May 2009 17:00:15 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: dll links or pkgconfig/libtool information is wrong References: <1de9d39c0905260519x7cdf738cxbc057482c6cdcd6b AT mail DOT gmail DOT com> In-Reply-To: <1de9d39c0905260519x7cdf738cxbc057482c6cdcd6b@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 jean-luc malet wrote: > hi! > I'm creating a dll using gcc and cygwin > this dll use 2 others dll : -lglut -lGL > $pkg-config.exe --libs gl > -lGL > but /bin/ contain cygGL-1.dll > when static linking with -lGL this works fine because libGL.a exist > when creating the dll -lGL don't work at all, I have to specify -lGL-1 > doing > /bin/$ ln -s cygGL-1.dll cygGL.dll > solve the issue > I have similar issue with some libtool based library Normally for every /bin/cygDLLNAME-VERSION.dll, there should be a /usr/lib/libDLLNAME.dll.a that contains import stubs, allowing you to link against whatever DLL is current without needing to specify the version number as you have done. Generally these import libraries live in the corresponding -devel package for whichever package you got the DLL from, and GL is no exception; using the package search page http://cygwin.com/packages/ to search for "libGL.dll.a" suggests that you need to install the "libGL-devel" package, to go alongside your already-installed "libGL1" package where the DLL came from. cheers, DaveK -- 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/