Can't link simple png test program.

Ross Smith ross@uprizer.com
Fri May 25 15:54:00 GMT 2001


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



More information about the Cygwin mailing list