how to force configuration to define HAVE_STD_STRING?

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jresnick
Posts: 1
Joined: Mon, 2006-02-13, 16:43
Location: Toronto

how to force configuration to define HAVE_STD_STRING?

#1 Post by jresnick »

I am building 3.5.3 on Linux. I would like to build using std strings, but by default it does not. I checked in cfunix.h and HAVE_STD_STRING is not defined anywhere. Is there an option I can pass to the configuration script to force it to use std string? I am new to Linux and not familiar with how the configuation script determines which flags to set.

I am using SUSE Linux 10 and GCC 4.0.2.

Any thoughts would be very helpful.

Thanks,
Jonathan

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

#2 Post by Marco Eichelberg »

HAVE_STD_STRING is still considered somewhat experimental and is never enabled by default by DCMTK's configure system. If you want to use this flag (which effectively replaces DCMTK's OFstring class by a typedef to the hopefully more efficient std::string), just run configure as usual and then put -DHAVE_STD_STRING into the CXXFLAGS definition in config/Makefile.def.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest