Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Ross Smith" To: Subject: Can't link simple png test program. Date: Fri, 25 May 2001 15:55:22 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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