Re: Help with ATLAS

2007-03-02 Thread Ignazio Di Napoli
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

Re: Help with ATLAS

2007-03-02 Thread René Berber
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

Re: Help with ATLAS

2007-03-02 Thread Ignazio Di Napoli
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

Re: Help with ATLAS

2007-03-02 Thread René Berber
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.

Re: Help with ATLAS

2007-03-02 Thread Ignazio Di Napoli
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

Re: Help with ATLAS

2007-03-02 Thread René Berber
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