Otherwise, I'm stuck.
ie:
Code: Select all
for(int i = 0; ; i++)
{
cout << i << endl;
DcmElement *el = dfile->getDataset()->getElement(i);
if(el->getOFStringArray(vstr).bad())
break;
dstr = el->getTag().getTagName();
cout << vstr << endl;
gtk_list_store_append(store, &iter);
gtk_list_store_set(store, &iter,
COL_DESCR, dstr.c_str(),
COL_VALUE, vstr.c_str(),
-1);
}
../../src/data_window.cpp:66:0 ../../src/data_window.cpp:66: error: passing 'const DcmTag' as 'this' argument of 'const char* DcmTag::getTagName()' discards qualifiers
Also, is there a workaround so I don't have to recompile the lib for all three OS's that I'm using?