[CppAD] Problem when compiling with NDEBUG
Brad Bell
bradbell at seanet.com
Wed Jun 2 15:18:36 EDT 2010
Thanks for the bug report. The problem was fixed at revision
https://projects.coin-or.org/CppAD/changeset/1698
This fix is immediately available from subversion and will be in the
tarballs starting tomorrow; i.e., 20100603.
In addition, the fix has been copied to
https://projects.coin-or.org/CppAD/browser/releases/20100101.4
On 6/1/2010 12:57 AM, Oliver Ruepp wrote:
> Hi,
>
> I stumbled upon a bug when trying to use CppAD (cppad-20100531) with the
> NDEBUG flag set. The message I got was
> "no matching function for call to ‘CheckSimpleVector...". This happes,
> e.g., when trying to compile test_more/sparse_hessian.cpp with -DNDEBUG
> compiler flag.
>
> I located the problem in the check_simple_vector.hpp file. In the case
> of NDEBUG (line 103), there is only a function
> template<class Scalar, class Vector>
> inline void CheckSimpleVector(void)
> { }
> defined - However a definition
> template<class Scalar, class Vector>
> void CheckSimpleVector(const Scalar& x, const Scalar& y)
> { }
> is also needed, as this function is used in some other parts of CppAD.
>
>
> Regards
> Oliver Ruepp
>
> _______________________________________________
> CppAD mailing list
> CppAD at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cppad
>
>
More information about the CppAD
mailing list