Boost logo

Ublas :

Subject: Re: [ublas] Example of use of boost::numeric::bindings::lapack with symmetric or triangular matrices?
From: Stuart Anderson (stuart.errol.anderson_at_[hidden])
Date: 2011-06-12 02:49:30


Thanks again!

It worked with the compile line

g++ -I/home/stuart/Desktop/numeric_bindings/ -lgfortran
hello-world.cpp -o hello_world

./hello_world
3

However I was only able to link to gfortran, what should the compile
line include for linking?

On Sun, Jun 12, 2011 at 2:59 PM, Rutger ter Borg <rutger_at_[hidden]> wrote:
> On 2011-06-12 06:26, Stuart Anderson wrote:
>>
>> Thanks for that!
>>
>> Tried this;
>>
>> svn co http://svn.boost.org/svn/boost/sandbox/numeric_bindings/
>> g++ -I/home/stuart/Desktop/numeric_bindings/ -llapack -lblas
>> -lgfortran hello-world.cpp -o hello_world
>>
>>
>> Got this result;
>>
>> hello-world.cpp: In function ‘int main()’:
>> hello-world.cpp:9:5: error: ‘cout’ is not a member of ‘std’
>> hello-world.cpp:9:18: error: ‘bindings’ has not been declared
>>
>
> Thanks for trying. Please try adding
>
> #include <iostream>
>
> namespace bindings = boost::numeric::bindings;
>
> to your hello_world source.
>
> Cheers,
>
> Rutger
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: stuart.errol.anderson_at_[hidden]