|
Ublas : |
From: Michael Stevens (mail_at_[hidden])
Date: 2005-09-18 15:35:56
On Samstag 17 September 2005 20:30, ZhiQiang Chen wrote:
> Dear all,
>
> I found some weird error in the following code:
>
> Vector vec(ZeroVec(N)); // error incurred when compiled
> // Vector vec(ZeroVec(N +1 -1)); // works fine
> // Vector vec(ZeroVec(5)); // works fine
Certainly weird.
> The error message is:
>
> warning: the address of `main()::Vector
> vec1(boost::numeric::ublas::zero_vector<double>)', will always be `true'
Even more odd. WHere does 'vec1' come from.
> /tmp/cc2twKnI.o(.text+0x147): In function `main':
> : undefined reference to `vec1(boost::numeric::ublas::zero_vector<double>)'
> So is it a bug over there? or something I haven't understood.
Help us out here. Which compiler/platform? Which version of Boost?
Michael
-- ___________________________________ Michael Stevens Systems Engineering 34128 Kassel, Germany Phone/Fax: +49 561 5218038 Navigation Systems, Estimation and Bayesian Filtering http://bayesclasses.sf.net ___________________________________