# Error in new\_CppObject\_xp

**URL:** <https://discourse.mc-stan.org/t/error-in-new-cppobject-xp/2096>\
**Category:** RStan\
**Created:** [October 2, 2017, 8:45pm UTC](https://discourse.mc-stan.org/t/error-in-new-cppobject-xp/2096 "2017-10-02T20:45:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [October 2, 2017, 11:27pm UTC](https://discourse.mc-stan.org/t/error-in-new-cppobject-xp/2096/5 "2017-10-02T23:27:27Z")

</div>

I got the fixes mixed up. Actually, you need

> [@new\_CppObject\_xp .. constructor in 2.16; and how to configure TravisCI](http://discourse.mc-stan.org/t/new-cppobject-xp-constructor-in-2-16-and-how-to-configure-travisci/1192/2):
>
> In tools/make\_cpp.R, you need to change line 36 from constructors = list(c("SEXP", "SEXP")), fields = character(), to constructors = list(c("SEXP", "SEXP", "SEXP")), fields = character(),

---

_[View the full topic](https://discourse.mc-stan.org/t/error-in-new-cppobject-xp/2096)._
