[Smtk-developers] smtk/common/TypeName.h is missing header include

Bob Obara bob.obara at kitware.com
Thu Aug 2 15:58:02 EDT 2018


Hi Cory,

I will get this fix added to SMTK shortly.

Thanks!

Bob

Robert M. O'Bara, MEng.
Assistant Director of Scientific Computing

Kitware Inc.
28 Corporate Drive
Suite 101
Clifton Park, NY 12065

Phone: (518) 881- 4931




> On Aug 2, 2018, at 2:35 PM, Corey Hart <corey.hart at gm.com> wrote:
> 
> Hi All,
>  
> Trying to compile SMTK (master branch) on Ubuntu 16.04 and I get the following error thrown:
>  
> smtk/common/TypeName.h fails to compile with error  error: must #include <typeinfo> before using typeid
>  
> Simply adding
>  
> #include <typeinfo>
>  
> to TypeName.h resolves the issue.
>  
> Here is a patch I made:
>  
> --- smtk-release/smtk/common/TypeName.h      2018-07-16 12:41:32.6881
> 82101 -0500
> +++ smtk/smtk/common/TypeName.h   
> 2018-07-16 14:38:33.487083640 -0500
> @@ -12,6 +12,7 @@
> #define smtk_common_TypeName_h
>  #include <string>
> +#include <typeinfo>
>  namespace smtk
> {
>  
> I registered this as an issue at https://gitlab.kitware.com/cmb/smtk/issues/173 <https://gitlab.kitware.com/cmb/smtk/issues/173> but noticed it ask I post the problem here first.
>  
> Thanks,
>  
> Corey Hart
> 
> 
> Nothing in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message. 
> 
> Confidentiality Note: This message is intended only for the person or entity to which it is addressed. It may contain confidential and/or privileged material. Any review, transmission, dissemination or other use, or taking of any action in reliance upon this message by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this message in error, please contact the sender and delete it from your computer. _______________________________________________
> Smtk-developers mailing list
> Smtk-developers at smtk.org <mailto:Smtk-developers at smtk.org>
> https://smtk.org/mailman/listinfo/smtk-developers <https://smtk.org/mailman/listinfo/smtk-developers>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://smtk.org/pipermail/smtk-developers/attachments/20180802/9914cf44/attachment.html>


More information about the Smtk-developers mailing list