[Insight-users] error C2872: 'uint16_t' : ambiguous symbol

Dženan Zukić dzenanz at gmail.com
Mon Aug 1 22:20:34 EDT 2011


It is hard to resolve this without source code. But gdcm should obviously
use its own unit16_t, not itk's one.

2011/8/1 Zein Salah <zeinsalah at gmail.com>

> I don't use any "using namespace;"
>
>
>
> 2011/8/1 Dženan Zukić <dzenanz at gmail.com>
>
>> Do you use "use namespace X;" statements? Because that is what VS was
>> complaining about.
>>
>> 2011/8/1 Zein Salah <zeinsalah at gmail.com>
>>
>>> I actually don't use namespaces!
>>> The programs that generate the error are too big to send.
>>>
>>>   2011/8/1 Dženan Zukić <dzenanz at gmail.com>
>>>
>>>> This page<http://msdn.microsoft.com/en-us/library/t57wswcs(v=vs.80).aspx>says:
>>>> put the #*include*s before the *using namespace*s
>>>>
>>>> If this is not it, can you supply a small example program which triggers
>>>> the error?
>>>>
>>>>   On Mon, Aug 1, 2011 at 13:32, Zein Salah <zeinsalah at gmail.com> wrote:
>>>>
>>>>>   Hi,
>>>>>
>>>>> After a new installation of ITK 3.20, VTK 5.6.1, ans
>>>>> Insightapplications, my own applications
>>>>> generate many occurances of the following error:
>>>>>
>>>>> D:\ITK\3.20\Utilities\gdcm\src\gdcmSerieHelper.h(119) : error C2872:
>>>>> 'uint16_t' : ambiguous symbol
>>>>> 5> could be 'd:\itk\3.20\utilities\gdcm\src\gdcmCommon.h(65) : unsigned
>>>>> short uint16_t'
>>>>> 5> or 'D:\ITK\3.20\Code\Common\itkIntTypes.h(152) : itk::uint16_t'
>>>>>
>>>>> Can somebody guess where the problem is?
>>>>>
>>>>> Much thanks,
>>>>> Zein
>>>>>
>>>>> _____________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Kitware offers ITK Training Courses, for more information visit:
>>>>> http://www.kitware.com/products/protraining.html
>>>>>
>>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110802/b81a2eb7/attachment.htm>


More information about the Insight-users mailing list