- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
http://softwareforums.intel.com/ids/board/message?board.id=16&message.id=4118
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page