[Dcmlib] [Gdcm2] building with shared libs
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Sep 9 16:34:49 CEST 2008
Greg,
Sorry to hear about your issues. I do not think I'll be of much help
here again.
What I would do is instead of looping, try first with a single tag
(such as 0x10,0x10) and see if this work. then add another one until
you figure out where it is actually failing.
If you built GDCM 2.x with TESTING=ON, you can execute from the cmd
line the unit test for gdcm::StringFilter:
gdcmMSFFTests TestStringFilter myfilename.dcm
good luck
-Mathieu
On Tue, Sep 9, 2008 at 4:07 PM, Greg Book <gbook at gbook.org> wrote:
> I figured it out! I had originally merged all the gdcm include files
> together in one directory instead of including all the source directories. I
> changed it to use the source directories and now its running correctly. Its
> weird because it compiled and linked fine both ways... I guess VC++ does
> actually care about some things even though it doesn't throw errors.
> I am running into another problem now though... While retrieving tag labels
> and values in a loop, it fails at the end of the first iteration of the
> loop, apparently upon deleting the std::pair.
>
> sf.SetFile( file );
>
> /* loop through all the doc elements */
> gdcm::DataSet::ConstIterator it = dataSet.Begin();
> for( ; it != dataSet.End(); ++it)
> {
> const gdcm::DataElement &ref = *it;
> //tag = ref.GetTag();
> std::pair<std::string, std::string> s = sf.ToStringPair(
> ref.GetTag() );
> }
>
> -Greg
>
>
>
> Greg Book wrote:
>
> It does work, both debug and release of gdcminfo and gdcmdump do work. That
> means I've got something going on :(
> Hopefully just a library problem.
> -Greg
>
>
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
--
Mathieu
More information about the Dcmlib
mailing list