Commit 68c4d48e authored by fogal1's avatar fogal1

Expressions workaround: add EXPR_EXPORTS when building avt.

The issue is that avtExprNode derives from ExprNode.  In some avt
code, we're handed an ExprNode and we upcast (via dynamic_cast) to
an IntegerConstExpr (for example).  dynamic_cast has to do a
typeinfo lookup, but it can't because ExprNode's typeinfo isn't in
the current shared object.  Since the type lookup fails, the
dynamic_cast fails, and we crash and burn.

Here we add a define to extra-export the common/expr code into
avt.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@7692 18c085ea-50e0-402c-830e-de6fd14e8384
parent dea8e113
......@@ -10450,6 +10450,7 @@ COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DQTVISWINDOW_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DQUERY_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DVISWINDOW_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DEXPRESSION_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DEXPR_EXPORTS"
VISIT_VTK_CPPFLAGS="$VISIT_VTK_CPPFLAGS $VTK_INCLUDES -I$""(TOPDIR)/include/visit"
......
......@@ -965,6 +965,9 @@ dnl Tom Fogal, Tue Jun 30 21:30:34 MDT 2009
dnl Defined COMPONENT_CPPFLAGS for avt symbol export.
dnl Call AC_HEADER_STDBOOL.
dnl
dnl Tom Fogal, Wed Jul 1 20:30:30 MDT 2009
dnl Add EXPR_EXPORTS while building avt, to workaround expressions pain.
dnl
dnl --------------------------------------------------------------------------
dnl
......@@ -3211,6 +3214,7 @@ COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DQTVISWINDOW_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DQUERY_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DVISWINDOW_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DEXPRESSION_EXPORTS"
COMPONENT_CPPFLAGS="$COMPONENT_CPPFLAGS -DEXPR_EXPORTS"
AC_SUBST(COMPONENT_CPPFLAGS)
VISIT_VTK_CPPFLAGS="$VISIT_VTK_CPPFLAGS $VTK_INCLUDES -I$""(TOPDIR)/include/visit"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment