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

Corey Hart corey.hart at gm.com
Thu Aug 2 14:35:26 EDT 2018


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 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://smtk.org/pipermail/smtk-developers/attachments/20180802/6f8097ec/attachment.html>


More information about the Smtk-developers mailing list