Problems to compile

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
focus
Posts: 77
Joined: Wed, 2005-03-16, 20:29
Location: Catalonia

Problems to compile

#1 Post by focus »

Hello I'm new with the dcmtk library

I'm trying to compile a simple program like this

#include "osconfig.h"
#include "dctk.h"

int main()
{
return -1;
}
but when I try to compile, g++ gets me these errors

./include/ofstream.h:102: error: `strstream' does not name a type
./include/ofstream.h:103: error: `ostrstream' does not name a type
./include/ofstream.h:104: error: `istrstream' does not name a type

and the second error is

./include/oflist.h:58:2: #error Your C++ compiler cannot handle class templates:
./include/oflist.h:498:2: #error Your C++ Compiler is not capable of compiling this code


someone can help me please to solutionate this error ?

I'm using g++ version 3.4.2 and the O.S. is Fedore Core, I have tried the same with another computer with mandrake 10.1 and g++ 3.4.1 and it gets me the same error, I supose that I'm doing something wrong when I try to compile. Thanks for all :)

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 »

Are you sure that your compiler is properly installed? Please make also sure that you've followed the instructions in the INSTALL file.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest