Boost logo

Ublas :

Subject: Re: [ublas] <Numeric Library Bindings for Boost> unresolved external symbol _dgeev referenced
From: Witold E Wolski (wewolski_at_[hidden])
Date: 2012-10-09 09:46:00


Hi Thomas,

So you mean I do not need to build it?
And how do I use boost numerical bindings??
I specified the -I options (actually I am using cmake) so I have
include_directories(${inc} ${CMAKE_SOURCE_DIR}/bnb)
I can find all the headers but:

but than

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 0 has invalid symbol index 10

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 1 has invalid symbol index 11

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 2 has invalid symbol index 2

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 3 has invalid symbol index 2

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 4 has invalid symbol index 10

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 5 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 6 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 7 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 8 has invalid symbol index 2

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 9 has invalid symbol index 2

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 10 has invalid symbol index 11

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 11 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 12 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 13 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 14 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 15 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 16 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 17 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 18 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 19 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 20 has invalid symbol index 19

/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In
function `_start':

(.text+0x20): undefined reference to `main'

CMakeFiles/linmodtest.dir/mytest.cpp.o: In function
`boost::numeric::bindings::lapack::detail::gesvd(char, char, int, int,
double*, int, double*, double*, int, double*, int, double*, int, double*,
int*)':

/home/witold/prog/test/bnb/boost/numeric/bindings/lapack/gesvd.hpp:80:
undefined reference to `dgesvd_'

On 9 October 2012 15:27, Thomas Klimpel <Thomas.Klimpel_at_[hidden]> wrote:

> Witold E Wolski wrote:
> > I checked out the boost bindings from the svn
> > there is Jamroot file so I thought to build it with bjam
> > First do I need to build it?
> > How do I build and configure it? couldt find a readme.
>
> The Jamroot file is just for the tests and the quickbook documentation.
>
> For running the test, I set the environment variable BOOST_ROOT explicitly
> to the root directory of a boost tree I want to use. Then I change into the
> directory where I want to run the tests, and type "b2" or "b2
> test_case_name". I normally adjust the paths in numeric-bindings.jam first.
> You can also use "b2 numbind=mkl-gcc matlib=eigen" to specify that you want
> to test with "mkl" instead of lapack and and eigen instead of ublas.
>
> Regards,
> Thomas
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: wewolski_at_[hidden]
>

-- 
Witold Eryk Wolski
Triemlistrasse 155
8047 Zuerich