<font size="2"><font face="verdana,sans-serif">Well, that is clear. gdcm does not use itk, but itk uses gdcm. So gdcm is unaware of itk and its namespace. You should have attempted the other thing, replacing unit16_t with unsigned short (the other alternative), not itk::uint16_t.<br>
</font></font><br><div class="gmail_quote">2011/8/3 Zein Salah <span dir="ltr"><<a href="mailto:zeinsalah@gmail.com">zeinsalah@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I am sorry to raise this issue once again, but in trying to figure out<br>
the problem, I noticed something that might help :).<br>
<br>
Well, as I said, I don't use any "using namespace" in my programs<br>
which generated the error.<br>
In my code, I included "itkGDCMSeriesFileNames.h", which includes<br>
"gdcmSerieHelper.h".<br>
So, I replaced all occurances of "uint16_t" with "itk::uint16_t"in the<br>
"gdcmSerieHelper.h" file.<br>
My programs do not generate the error any more. BUT I tried to<br>
re-combile ITK with<br>
the newly updated gdcmSeriesHelper.h. Now the project "itkgdcm" failed<br>
to compile and<br>
generates an error that 'itk' : is not a class or namespace name at<br>
every line, where<br>
I previously added itk::<br>
<br>
Any Hints!<br>
<br>
Cheers,<br>
<font color="#888888">Zein<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
2011/8/2 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>><br>
><br>
> Can you narrow the problem down? See whether it is caused by ITK, VTK or CMake, by combining the newest and the working versions of them.<br>
><br>
> 2011/8/2 Zein Salah <<a href="mailto:zeinsalah@gmail.com">zeinsalah@gmail.com</a>><br>
>><br>
>> well, the stragne thing is that the same programs, being built with<br>
>> itk 3.10, vtk 5.21., cmake 2.6.2, do NOT generate the error.<br>
>><br>
>> 2011/8/2 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>><br>
>>><br>
>>> It is hard to resolve this without source code. But gdcm should obviously use its own unit16_t, not itk's one.<br>
>>><br>
>>> 2011/8/1 Zein Salah <<a href="mailto:zeinsalah@gmail.com">zeinsalah@gmail.com</a>><br>
>>>><br>
>>>> I don't use any "using namespace;"<br>
>>>><br>
>>>><br>
>>>> 2011/8/1 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>><br>
>>>>><br>
>>>>> Do you use "use namespace X;" statements? Because that is what VS was complaining about.<br>
>>>>><br>
>>>>> 2011/8/1 Zein Salah <<a href="mailto:zeinsalah@gmail.com">zeinsalah@gmail.com</a>><br>
>>>>>><br>
>>>>>> I actually don't use namespaces!<br>
>>>>>> The programs that generate the error are too big to send.<br>
>>>>>><br>
>>>>>> 2011/8/1 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>><br>
>>>>>>><br>
>>>>>>> This page says:<br>
>>>>>>> put the #includes before the using namespaces<br>
>>>>>>><br>
>>>>>>> If this is not it, can you supply a small example program which triggers the error?<br>
>>>>>>><br>
>>>>>>> On Mon, Aug 1, 2011 at 13:32, Zein Salah <<a href="mailto:zeinsalah@gmail.com">zeinsalah@gmail.com</a>> wrote:<br>
>>>>>>>><br>
>>>>>>>> Hi,<br>
>>>>>>>><br>
>>>>>>>> After a new installation of ITK 3.20, VTK 5.6.1, ans Insightapplications, my own applications<br>
>>>>>>>> generate many occurances of the following error:<br>
>>>>>>>><br>
>>>>>>>> D:\ITK\3.20\Utilities\gdcm\src\gdcmSerieHelper.h(119) : error C2872: 'uint16_t' : ambiguous symbol<br>
>>>>>>>> 5> could be 'd:\itk\3.20\utilities\gdcm\src\gdcmCommon.h(65) : unsigned short uint16_t'<br>
>>>>>>>> 5> or 'D:\ITK\3.20\Code\Common\itkIntTypes.h(152) : itk::uint16_t'<br>
>>>>>>>><br>
>>>>>>>> Can somebody guess where the problem is?<br>
>>>>>>>><br>
>>>>>>>> Much thanks,<br>
>>>>>>>> Zein<br>
>>>>>>>> _____________________________________<br>
>>>>>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>>>>><br>
>>>>>>>> Visit other Kitware open-source projects at<br>
>>>>>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>>>>>><br>
>>>>>>>> Kitware offers ITK Training Courses, for more information visit:<br>
>>>>>>>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>>>>>>>><br>
>>>>>>>> Please keep messages on-topic and check the ITK FAQ at:<br>
>>>>>>>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>>>>>>><br>
>>>>>>>> Follow this link to subscribe/unsubscribe:<br>
>>>>>>>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>>>>>>><br>
>>>>>>><br>
>>>>>><br>
>>>>><br>
>>>><br>
>>><br>
>><br>
><br>
</div></div></blockquote></div><br>