This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can't link simple png test program.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]