delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/25/19:23:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Ross Smith" <ross AT uprizer DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Can't link simple png test program.
Date: Fri, 25 May 2001 15:55:22 -0700
Message-ID: <HJEEKBOOCDHJJHKJLFFKMEHGDMAA.ross@uprizer.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

Using cygwin 1.3.2, when I compile pngtest.c:

#include "png.h"

int main() {
  png_info_init(0);
  return 0;
}

with

% gcc -lpng -L/lib pngtest.c

I get:

/tmp/ccflselC.o(.text+0x11):pngtest.c: undefined reference to
`png_info_init'
collect2: ld returned 1 exit status

Even though /lib/libpng.a contains png_info_init.

The same thing happens with libz, and others.

Any help would be greatly appreciated.

Thanks,

Ross Smith


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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