delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <47026685.5070101@cwilson.fastmail.fm> |
Date: | Tue, 02 Oct 2007 11:40:53 -0400 |
From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
User-Agent: | Thunderbird 2.0.0.6 (Windows/20070728) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Why I cannot build my own program in Cygwin when using libpng function???? |
References: | <f9c911e10710020832k4bb2b40cl88dec405bbf40b78 AT mail DOT gmail DOT com> <f9c911e10710020834j678b1ddfn55ef7b8e04119ba3 AT mail DOT gmail DOT com> |
In-Reply-To: | <f9c911e10710020834j678b1ddfn55ef7b8e04119ba3@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 |
valpassing wrote: > I installed libpng in cygwin. then I include png.h in my files, and > use many fucntions provided by libpng. > But when I compile it, it reports: > > xiaodwan AT xiaodwan-wxp ~/Desktop//pix > $ gcc -lpng12 -lz -I/usr/include/libpng12 -o ref ref.c try gcc -I/usr/include/libpng12 -o ref ref.c -lpng12 -lz gcc searches from left to right. If ref.c uses symbols provided by libpng, then libpng must appear *after* ref.c on the command line. -- Chuck -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |