delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/10/08:15:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 10 Jan 2002 14:07:05 +0100
From: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
X-Mailer: The Bat! (v1.53t) Business
Reply-To: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
Organization: convey Information Systems GmbH
X-Priority: 3 (Normal)
Message-ID: <13712653054.20020110140705@familiehaase.de>
To: cygwin AT cygwin DOT com
Subject: Re: libpng problems with png_info_init, png_read_destroy
In-Reply-To: <20020110145308.A7436@infosat.net>
References: <757896744 DOT 20020110124749 AT familiehaase DOT de>
<1799332659 DOT 20020110131145 AT familiehaase DOT de> <20020110145308 DOT A7436 AT infosat DOT net>
MIME-Version: 1.0

 Jean,

2002-01-10 14:01:30, du schriebst:

> Perhaps this time I can ofer my two cents worth ;)

>> > Hallo Cygwinners,
>> 
>> > I'm getting these undefined references when linking against
>> > libjpeg import lib:
>> Waddaza want?  Wanted to say> libpng import lib
>> 
>> > /stuff/test/mMosaic-src-3.7.2/src/readPNG.c:79: undefined reference to `png_read_destroy'
>> > /stuff/test/mMosaic-src-3.7.2/src/readPNG.c:94: undefined reference to `png_info_init'
>> > /stuff/test/mMosaic-src-3.7.2/src/readPNG.c:286: undefined reference to `png_read_destroy'
>> 
>> > Are there a known workaround besides linking the libs statically?

> Since you are using .c, I presume that you are including the source
> and that the .c files do not contain the declerations, but only the
> implmentations of the code. Errors like your's if freuently
> encountered when forgetting to include a header file. Make sure that
> you are not looking for /stuff/test/mMosaic-src-3.7.2/src/readPNG.h
> instead.

> It appears that you want to rather include the .h files and add the
> relevant lib in your link-line.

No, the problem is that these functions are private and are not exported
from the dll lib, so I need to link libpng staticallz to get the
functions, but I want to link against the dynamic lib.

I found one reference in the archives how to substitute png_info_init
with png_create_info_struct() but nothing about png_read_destroy().


Anyway, thank you for your comment, please keep communication on the
cygwin list as long as it is ontopic there.

Gerrit
-- 
=^..^=


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

- Raw text -


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