mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Cannot Use libtiff to compile


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] Cannot Use libtiff to compile
Date: Sun, 23 May 2010 00:33:54 +1000

On 22 May 2010 06:09, David Stone <address@hidden> wrote:
> Greetings,
>
> I must say this project is wonderful, it makes like so much easier to
> setup a complete cross compile environment. However I am having trouble
> compiling a project that uses libtiff. The ./configure process fails
> when checking for -ltiff. Here's the test program that fails:
>
>  #ifdef __cplusplus
>  extern "C"
>  #endif
>  char TIFFOpen ();
>  int
>  main ()
>  {
>  return TIFFOpen ();
>   ;
>   return 0;
>  }
>
> compiled with
> i686-pc-mingw32-gcc test.c -ltiff

You need to specify all the libraries you want to link:

i686-pc-mingw32-gcc test.c -ltiff -ljpeg -lz ..etc

Tony



reply via email to

[Prev in Thread] Current Thread [Next in Thread]