Problems linking my code with Dcmtk library

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
dhavaldalal
Posts: 3
Joined: Wed, 2005-03-02, 02:27

Problems linking my code with Dcmtk library

#1 Post by dhavaldalal »

Hi all,

I am trying to compile my own library, which uses dcmtk, on Linux
(gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)).


I get the following error message and I do not understand what it means:

/usr/local/dcmtk-3.5.3/ofstd/include/ofstream.h:76:2: #error DCMTK needs stringstream or strstream type

These errors occur when I compile my own library, which uses dcmtk.
I have also added #include <osconfig.h> in my all my .cpp and .h files, but the same errors come up.

I would appreciate any help to solve this problem...
Thanks in advance.
Dhaval

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

Make sure that you compile with -DHAVE_CONFIG_H.

bala
Posts: 10
Joined: Wed, 2007-11-21, 14:05

How to compile the code with -DHAVE_CONFIG_H.

#3 Post by bala »

Hi,

How to compile the code with -DHAVE_CONFIG_H.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#4 Post by Marco Eichelberg »

gcc -DHAVE_CONFIG_H ...

bala
Posts: 10
Joined: Wed, 2007-11-21, 14:05

#5 Post by bala »

Thank you.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest