🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sci.math.num-analysis
2 messages
2 total messages Started by wroot Wed, 30 Aug 2000 00:00
LAPACK & TNT
#1303
Author: wroot
Date: Wed, 30 Aug 2000 00:00
28 lines
1701 bytes
HI,

I'm trying to solve the eigenvalue / eigenvector problem in C++ (I need
both). TNT ( http://math.nist.gov/tnt/ ) doesn't have an eigenvalue
problem routine of its own, but it has a lapack.h header file that
supposedly calls LAPACK Fortran subroutines for this.

I installed LAPACK and BLAS RPMs on my Redhat system, however, linking
with lapack doesn't work: When I do

g++ -llapack -o f f.o
or
g++ -llapack -lblas -o f f.o

the linker ld tells me that a bunch of refrences are undefined (
 e_wsfe z_abs c_sqrt s_cmp r_lg10 z_exp c_exp etime_ c_div do_fio pow_dd
z_sqrt s_cat s_stop c_abs d_lg10 z_div s_wsfe s_copy)
Using "grep" I figured out that they are only encountered in lapack
library files.

How can I get this to link? TNT doesn't not provide any documentation
to speak of or support for linking to Fortran routines.

Wroot


Sent via Deja.com http://www.deja.com/
Before you buy.
Re: LAPACK & TNT
#1304
Author: Jochen K�pper
Date: Wed, 30 Aug 2000 22:11
15 lines
1461 bytes
wroot@my-deja.com writes:

> g++ -llapack -lblas -o f f.o

g++ -o f f.o -llapack -lblas -lg2c

Think about the the why;-))

Jochen
-- 
http://www.Jochen-Kuepper.de

   Einigkeit und Recht und Freiheit
       Libert�, �galit�, Fraternit�
           Sex, drugs and rock-n-roll
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads