|
From: Per W. <pw...@ia...> - 2003-04-08 20:42:00
|
It isn't enough that your lib directory contains the tiff libraries. You
also have to add them to the project.
The lib directory is where the linker will look for the libraries.
However, it won't start looking for a library unless the project
references the library.
Open project options, and on compiler options add the needed library.
/Per W
On Tue, 8 Apr 2003, Szathmary Laszlo wrote:
> Hi,
>
> I'm quite new to Dev-C++, and I ran into a problem. I wanted to compile
> this simple prg.:
>
> #include <stdlib.h>
> #include <tiffio.h>
> #include <tiff.h>
>
> int main(int argc, char *argv[])
> {
> TIFF* tif = TIFFOpen("foo.tif", "r");
> // ... do stuff ...
> TIFFClose(tif);
> system("PAUSE");
> return 0;
> }
>
> but I get the next error: undefined reference to TIFFOpen and to
> TIFFClose. In the include directory I have tiff.h, tiffio.h and
> tiffvers.h, in the lib dir. I have tiff.lib, and libtiff.a
> What is wrong? In the options menu the lib and iclude directories are set
> properly.
>
> Thanks,
>
> laszlo
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|