[Insight-users] gdcm ambiguous symbol
Cory Quammen
cquammen at cs.unc.edu
Wed Mar 30 08:00:51 EDT 2011
Yihui,
Ok. Could you post some example code that has the problem you report?
Thanks,
Cory
On Wed, Mar 30, 2011 at 12:35 AM, yihui cao <yihuicao1987 at gmail.com> wrote:
> Dear Cory,
>
> I did not use "using namespace itk" anywhere in my code.
>
> Thanks!
> Yihui
>
> 2011/3/29 Cory Quammen <cquammen at cs.unc.edu>
>>
>> Yihui,
>>
>> Do you have the line
>>
>> using namespace itk;
>>
>> anywhere in your code? If so, I suggest removing it and instead
>> reference ITK classes by their fully qualified names, e.g.,
>> itk::Image, itk::DiscreteGaussianImageFilter, etc.
>>
>> Using the itk namespace pollutes the root namespace, leading to errors
>> like the kind you are getting.
>>
>> Cory
>>
>> On Tue, Mar 29, 2011 at 3:48 AM, yihui cao <yihuicao1987 at gmail.com> wrote:
>> > The problem occured at
>> >
>> > D:\InsightToolkit-3.18.0\InsightToolkit-3.18.0\Utilities\gdcm\src\gdcmSerieHelper.h(109)
>> >
>> > 2011/3/29 yihui cao <yihuicao1987 at gmail.com>
>> >>
>> >> Dear professor,
>> >>
>> >> I writen a code of ITK. It occured a error: error C2872:
>> >> “uint16_t”: ambiguous symbol it may
>> >>
>> >> be“d:\insighttoolkit-3.18.0\insighttoolkit-3.18.0\utilities\gdcm\src\gdcmCommon.h(65)
>> >> : unsigned short
>> >>
>> >> uint16_t” or “d:\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itkIntTypes.h(152)
>> >> : itk::uint16_t”
>> >>
>> >> What can I do to solve this problem?
>> >>
>> >> Thanks!
>> >> yihui
>> >
>> > _____________________________________
>> > 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
>> >
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> Computer Integrated Systems for Microscopy and Manipulation (CISMM)
>> Department of Computer Science
>> University of North Carolina at Chapel Hill
>> http://www.cs.unc.edu/~cquammen
>
>
--
Cory Quammen
Computer Integrated Systems for Microscopy and Manipulation (CISMM)
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen
More information about the Insight-users
mailing list