2012.02.01 21:48 "[Tiff] tiff warning question", by

2012.02.01 17:41 "[Tiff] linking libtiff in ubuntu", by Martin Alegre

Dear all,

I'm wondering, which is the correct way to link the libtiff library in I'm using g++ 4.6.0 on Ubuntu 11.04 and running the command below to ubuntu?

build the executable:
-ggdb -ansi -std=c++0x -llibtiff ./src/color.cpp -I./inc -o g++

./obj/color.o

the compiler error that I get is:
fatal error: tiffio.h: No such file or directory

the way, I'm including the tiffio.h file is:

    // color.h
    // option to use a local version of the libtiff
    #ifdef IO_TIFF_LOCAL_LIBTIFF
        #include "tiffio.h"
    #else
        #include <tiffio.h>
    #endif

Note that I double-check already whether the library was installed on my machine. Here's the output:

$ apt-cache search libtiff

libtiff-doc - TIFF manipulation and conversion documentation

libtiff-tools - TIFF manipulation and conversion tools
- Tag Image File Format (TIFF) library libtiff4

libtiff4-dev - Tag Image File Format library (TIFF), development files - Tag Image File Format (TIFF) library -- C++ interface libtiffxx0c2

libtiff-opengl - TIFF manipulation and conversion tools

pngtools - series of tools for PNG (Portable Network Graphics) images

Any suggestions are really welcomed!

Cheers