delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/27/07:00:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A1D200B.2020503@gmail.com>
Date: Wed, 27 May 2009 12:12:11 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
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> <4A1C120F DOT 8040808 AT gmail DOT com> <1de9d39c0905270207x62e00deej9920f3d6b4e31c12 AT mail DOT gmail DOT com>
In-Reply-To: <1de9d39c0905270207x62e00deej9920f3d6b4e31c12@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

jean-luc malet wrote:
> On Tue, May 26, 2009 at 6:00 PM, Dave Korn
>> jean-luc malet wrote:

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

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

> I have the dev packages installed and the libGL.dll.a are present
> $ls /lib/libGL*
> /lib/libGL.dll.a  /lib/libGLU.dll.a
> 
> however, without -lGL-1 it's impossible to link a dll (report missing symbols)
> thanks and regards

  That is strange and unexpected and could indicate a bug, perhaps in the
building of the import libraries.  Can you show us a very simple testcase,
e.g. a trivial C program with just a "main" function that calls a few of these
functions that cause missing references?  (Also, double-check that you have
the exact corresponding version of the lib package and the -devel package by
running "cygcheck -c libGL1 libGL-devel", just in case).

    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/

- Raw text -


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