Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29433 Discussions

linking problems with lapack/lapack++

aoh
Beginner
921 Views
Hey


I'm trying to compile a c++ program using lapack++ (c++ libraries that depend on lapack and blas). I'm trying to build on the SDSC with these specs:

http://www.sdsc.edu/user_services/ia64/tech-summary.html

lapack, blas and lapack++ were already installed by the technicians. When I try to compile, I get these errors:


/usr/lib/liblapack.so: undefined reference to `f_cpstr'
/usr/lib/libblas.so: undefined reference to `f_iob'
/usr/lib/liblapack.so: undefined reference to `f_cpystr'
/usr/lib/liblapack.so: undefined reference to `f_concat'
/usr/lib/libblas.so: undefined reference to `f_stop'

The command I use to compile is this:

icc -I/usr/local/apps/lapackpp-2.4.8/include/lapackpp -L/usr/local/apps/lapackpp-2.4.8/lib -llapackpp -lg2c -lblas -llapack test.cc

So just from looking at it, I see that blas and lapack are attempting to link to some other fortran libraries whose identities I don't have the slightest clue. Are there any linker flags I can add to successfully compile? Any help would be greatly appreciated. Thanks.

Andy

Message Edited by aoh@ucsd.edu on 05-25-200611:04 AM

0 Kudos
1 Reply
micahe
Beginner
921 Views
This looks like it was also posted to the C++ forum. For reference here's the solution:

http://softwareforums.intel.com/ids/board/message?board.id=16&message.id=4118
0 Kudos
Reply