// The following crashes on Win32
#include "gdcm.h"
+#include "gdcmConfigure.h"
int bug1(int argc, char* argv[])
{
if (argc > 1)
e1 = new gdcmHeader(argv[1]);
else
- e1 = new gdcmHeader("test.acr");
+ {
+ std::string filename = GDCM_DATA_ROOT;
+ filename += "/test.acr";
+ e1 = new gdcmHeader( filename.c_str() );
+ }
e1->PrintPubDict();
return 0;
#include "gdcm.h"
#include "gdcmHeaderEntry.h"
#include "gdcmDicomDir.h"
+#include "gdcmConfigure.h"
#include <fstream>
#ifdef GDCM_NO_ANSI_STRING_STREAM
std::string file;
if (argc > 1)
file = argv[1];
- else
- file = "../gdcmData/DICOMDIR";
-
+ else {
+ file += GDCM_DATA_ROOT;
+ file += "/DICOMDIR";
+ }
+
e1 = new gdcmDicomDir(file.c_str());
if (argc > 2) {
int level = atoi(argv[2]);