error using DCMTK libraries

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
fester
Posts: 6
Joined: Wed, 2005-09-21, 09:19

error using DCMTK libraries

#1 Post by fester »

Hi
when I try to use dcmtk in my C++ code, I get the following error:

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

/dcmtk-3.5.3/ofstd/include/ofstream.h:103: syntax error before `;' token

/dcmtk-3.5.3/ofstd/include/ofstream.h:104: syntax error before `;' token

/dcmtk-3.5.3/ofstd/include/ofstream.h:105: syntax error before `;' token

/dcmtk-3.5.3/ofstd/include/oflist.h:58:2: #error Your C++ compiler cannot handle class templates:

Thanks for any suggestion!

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

First, try this.

fester
Posts: 6
Joined: Wed, 2005-09-21, 09:19

error using DCMTK libraries

#3 Post by fester »

I read previous posted about my problem and I found the solution: there was a configuration error. I re-build the library in this way:

./configure --enable-std-includes

make all

make install-lib

The compiler was g++ 3.2.3

Now my code has no problem with the library...

Thank you :D

See you soon!

fester
Posts: 6
Joined: Wed, 2005-09-21, 09:19

error using DCMTK libraries

#4 Post by fester »

Hi
I have no solved my trouble...
when I try to use some little application with class of DCMTK library I get the same errors posted before.

I've already checked that I compile with -DHAVE_CONFIG_H.

Any suggestion?

Thank you very much!!!

fester
Posts: 6
Joined: Wed, 2005-09-21, 09:19

#5 Post by fester »

Hi
Finally I really solved my problem. I added in my Makefile the pthread library and z library:

-lpthread -lz

Bye bye

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest