This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Can't link simple png test program.
- To: <cygwin at cygwin dot com>
- Subject: Can't link simple png test program.
- From: "Ross Smith" <ross at uprizer dot com>
- Date: Fri, 25 May 2001 15:55:22 -0700
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