CannyEdgeDetectionImageFilter (was [Insight-developers] compile error on VC++)
Lydia Ng
lng@insightful.com
Tue, 14 May 2002 19:17:00 -0700
After many hours of joyous debugging Luis and I found
the culprit in itkCannyEdgeDetectionImageFilter.txx.
It was using itkRawImageWriter inside to print write
out a raw image inside GenerateData -=20
I guess for debugging purposes.
As per Luis's email last week, itkRawImageWriter has
been deprecated and should not longer be used.
The raw image writing has been removed from=20
itkCannyEdgeDetectionImageFilter.=20
Xinwei: if you want this functionality back could you
make use of the IO classes instead?
-Lydia
> -----Original Message-----
> From: Lydia Ng=20
> Sent: Tuesday, May 14, 2002 12:23 PM
> To: insight-developers@public.kitware.com
> Subject: [Insight-developers] compile error on VC++
>=20
>=20
> Dear All,
>=20
> The VC++ build seems to be broken.=20
> Looks like is a duplicate symbols problem - I even tried
> a clean rebuild.
> Are others getting the same thing, better still does
> anyone know the fix?
>=20
> -Lydia
>=20
> --------------------Configuration: itkBasicFiltersTests - Win32
> Release--------------------
> Linking...
> msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: virtual __thiscall
> std::basic_filebuf<char,struct std::char_traits<char>
> >::~basic_filebuf<char,struct std::char_traits<char> >(void)"
> (??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ) alread
> y defined in itkCannyEdgeDetectionImageFilterTest.obj
> msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class
> std::basic_filebuf<char,struct std::char_traits<char> > * __thiscall
> std::basic_filebuf<char,struct std::char_traits<char>=20
> >::open(char const
> *,int)" (?open@?$basic_filebuf@DU?$char_traits@D@s
> td@@@std@@QAEPAV12@PBDH@Z) already defined in
> itkCannyEdgeDetectionImageFilterTest.obj
> msvcprt.lib(MSVCP60.dll) : error LNK2005: "protected: void __thiscall
> std::basic_filebuf<char,struct std::char_traits<char> >::_Init(struct
> _iobuf *,enum std::basic_filebuf<char,struct std::char_traits<char>
> >::_Initfl)" (?_Init@?$basic_filebuf@DU?$
> char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z)=20
> already defined
> in itkCannyEdgeDetectionImageFilterTest.obj
> msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall
> std::basic_filebuf<char,struct std::char_traits<char>
> >::basic_filebuf<char,struct std::char_traits<char> >(struct=20
> _iobuf *)"
> (??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobu
> f@@@Z) already defined in itkCannyEdgeDetectionImageFilterTest.obj
> msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: virtual __thiscall
> std::basic_ofstream<char,struct std::char_traits<char>
> >::~basic_ofstream<char,struct std::char_traits<char> >(void)"
> (??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ) alr
> eady defined in itkCannyEdgeDetectionImageFilterTest.obj
> msvcprt.lib(MSVCP60.dll) : warning LNK4006: "public: virtual=20
> __thiscall
> std::basic_filebuf<char,struct std::char_traits<char>
> >::~basic_filebuf<char,struct std::char_traits<char> >(void)"
> (??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ) alre
> ady defined in itkCannyEdgeDetectionImageFilterTest.obj; second
> definition ignored
> msvcprt.lib(MSVCP60.dll) : warning LNK4006: "public: class
> std::basic_filebuf<char,struct std::char_traits<char> > * __thiscall
> std::basic_filebuf<char,struct std::char_traits<char>=20
> >::open(char const
> *,int)" (?open@?$basic_filebuf@DU?$char_traits@D
> @std@@@std@@QAEPAV12@PBDH@Z) already defined in
> itkCannyEdgeDetectionImageFilterTest.obj; second definition ignored
> msvcprt.lib(MSVCP60.dll) : warning LNK4006: "protected: void=20
> __thiscall
> std::basic_filebuf<char,struct std::char_traits<char> >::_Init(struct
> _iobuf *,enum std::basic_filebuf<char,struct std::char_traits<char>
> >::_Initfl)" (?_Init@?$basic_filebuf@DU
> ?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z) already
> defined in itkCannyEdgeDetectionImageFilterTest.obj; second definition
> ignored
> msvcprt.lib(MSVCP60.dll) : warning LNK4006: "public: __thiscall
> std::basic_filebuf<char,struct std::char_traits<char>
> >::basic_filebuf<char,struct std::char_traits<char> >(struct=20
> _iobuf *)"
> (??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_io
> buf@@@Z) already defined in itkCannyEdgeDetectionImageFilterTest.obj;
> second definition ignored
> msvcprt.lib(MSVCP60.dll) : warning LNK4006: "public: virtual=20
> __thiscall
> std::basic_ofstream<char,struct std::char_traits<char>
> >::~basic_ofstream<char,struct std::char_traits<char> >(void)"
> (??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ) a
> lready defined in itkCannyEdgeDetectionImageFilterTest.obj; second
> definition ignored
> Creating library Release/itkBasicFiltersTests.lib and object
> Release/itkBasicFiltersTests.exp
> Release/itkBasicFiltersTests.exe : fatal error LNK1169: one or more
> multiply defined symbols found
> Error executing link.exe.
>=20
> itkBasicFiltersTests.exe - 6 error(s), 5 warning(s)
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>=20
>=20