René Berber wrote:
Looks like a problem with linking static libraries, g++ looks for dynamic
libraries unless you do:
g++ -static -g -O2 -L/usr/local/atlas/lib/ -o linprog.exe main.o matrix.o
vector.o lipsol.o myexception.o matrix-io.o matrix-cmp.o matrix-ops.o
matrix-pos.o matrix-fun.o matrix-l
Ignazio Di Napoli wrote:
>> nm /usr/local/atlas/lib/libcblas.a | grep cblas_dgemm
> cblas_dgemm.o: T _cblas_dgemm
>
> Another note: if I add 'extern "C" {...}' around #include , the
> error becomes: undefined reference to _cblas_dgemm, which is exacty the
> symbol in the output.
Looks
René Berber wrote:
Same exact error message?
Yes.
nm /usr/local/atlas/lib/libcblas.a | grep cblas_dgemm
cblas_dgemm.o:
T _cblas_dgemm
Another note: if I add 'extern "C" {...}' around #include , the
error becomes: undefined reference to _cblas_dgemm, which is exacty the
symbol in
Ignazio Di Napoli wrote:
> René Berber wrote:
>> Never put libraries first.
>
> Doesn't help...
Same exact error message?
>> g++ -g -O2 -L/usr/local/atlas/lib/ -o linprog.exe main.o matrix.o
>> vector.o lipsol.o myexception.o matrix-io.o matrix-cmp.o matrix-ops.o
>> matrix-pos.o
>> matrix-fun.
René Berber wrote:
Never put libraries first.
Doesn't help...
g++ -g -O2 -L/usr/local/atlas/lib/ -o linprog.exe main.o matrix.o vector.o
lipsol.o myexception.o matrix-io.o matrix-cmp.o matrix-ops.o matrix-pos.o
matrix-fun.o matrix-lna.o matrix-stb.o sparsematrix.o -llapack -lcblas -lf77blas
Ignazio Di Napoli wrote:
[snip]
> g++ -g -O2 -L/usr/local/atlas/lib/ -llapack -lcblas -lf77blas -latlas
> -o linprog.exe main.o matrix.o vector.o lipsol.o myexception.o
> matrix-io.o matrix-cmp.o matrix-ops.o matrix-pos.o matrix-fun.o
> matrix-lna.o matrix-stb.o sparsematrix.o
>
> I get:
>
> m
6 matches
Mail list logo