Fix issue with mkConst/getConst of TypeConstant (#1439)
authorAndres Noetzli <andres.noetzli@gmail.com>
Sun, 10 Dec 2017 08:48:05 +0000 (00:48 -0800)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2017 08:48:05 +0000 (00:48 -0800)
commit2b9347b8f69a87246723502fe9f1db87429a0778
treefbcbfb42ba03e3d2bfa94f5cb0ba9beb9c578877
parent99fb7d9e0b963222574c01e0362d3720c62b825f
Fix issue with mkConst/getConst of TypeConstant (#1439)

When compiling the Java bindings on macOS, the linker complained about
CVC4::ExprManager::mkConst<CVC4::TypeConstant>() and
CVC4::Expr::getConst<CVC4::TypeConstant>() being undefined. After some
research, I found that the issue has been introduced by commit
36bf9f8bcb2a1a3aea1f90eb4d13aed3bbf6da8f. It looks like adding the
-no-undefined flags resulted in the symbols in question being omitted
due to TypeConstant not being exported. This commit makes TypeConstant
CVC4_PUBLIC, which fixes the issue.
src/expr/kind_template.h