> -----Original Message-----
> From: Michaela und Daniel Weiß [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 09, 2002 8:06 AM
> To: [EMAIL PROTECTED]
> Subject: cannot link with libtiff
>
>
> Hi,
>
> I haven't found this problem in the mailing list archive:
>
> I have been trying to use libtiff (tiff-3.5.7-1) in my
> program (using daily updated cygwin version). According to
> the announcement (Charles Wilson on Feb 10th):
>
> <BEGIN QUOTE>
> Now uses the auto-import functionality of newer binutils, and
> doesn't use __declspec(dllimport). This means you no longer
> need "-DTIFF_STATIC -DJPEG_STATIC -DZLIB_STATIC" or even
> -DALL_STATIC when compiling objects intended for static
> linking. Just compile as normal. (...) NO special flags at
> compile-time nor link-time when linking to dynamic links. <END QUOTE>
>
> So I have tried to compile my program with the line:
>
> gcc -Wall -O3 *.c
>
Auto import doesn't remove the need to list the library. libm works because it's part
of libcygwin which is listed in the cygwin gcc specs file. Try gcc -Wall -O3 *c -ltiff
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/