I'm using Qt Creator 2.4.1 under Xubuntu 11.10.

I've installed libgdcm2-dev (2.0.17) in repositories.

Now I have

/usr/include/gdcm-2.0
/usr/lib/gdcm-2.0
and a lot of *.so related to gdcm in
/usr/lib/
Writing code, I can autocomplete sentences with gdcm classes and functions (the IDE finds them), but compiling, it gives me error messages like:

My code:

Qt Code:
  1. #include <gdcmImageReader.h>
  2. ...
  3. gdcm::ImageReader ir;
To copy to clipboard, switch view to plain text mode 
I get:

error: undefined reference to `gdcm::ImageReader::ImageReader()'
I've tried with:

Qt Code:
  1. #include "/usr/include/gdcm-2.0/ImageImageReader.h"
To copy to clipboard, switch view to plain text mode 

With this one, it works from a simple editor like Geany.

In my .pro file I have

Qt Code:
  1. INCLUDEPATH += /usr/include/gdcm-2.0
  2. LIBS += -L/usr/lib/
To copy to clipboard, switch view to plain text mode 

What could I try? Thanks.