- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm trying to compile ARPACK on linux with the ifort compiler.
After modifying the makefile to use ifort, it successfully creates a file libarpack_linux.a using GNU ar and ranlib.
However, when I try to link it with my application I get "undefined references" error (like to subroutine`dnaupd_', which is clearly in ARPACK). Here's my link command:
ifort $FSRC -L/home/arthur/SIMILAR-vcs/src/ -static-intel -lmkl_solver -lmkl_lapack -lmkl_ia32 -lguide -larpack_linux -I/home/arthur/SIMILAR-vcs/src/ -o SIMILAR-linux
where $FSRC are my *.o files and libarpack_linux.a resides in /home/arthur/SIMILAR-vcs/src (which is specified by the -L switch).
I've been searching up and down for any clues, but have found none, advice would be much appreciated.
regards,
Arthur
After modifying the makefile to use ifort, it successfully creates a file libarpack_linux.a using GNU ar and ranlib.
However, when I try to link it with my application I get "undefined references" error (like to subroutine`dnaupd_', which is clearly in ARPACK). Here's my link command:
ifort $FSRC -L/home/arthur/SIMILAR-vcs/src/ -static-intel -lmkl_solver -lmkl_lapack -lmkl_ia32 -lguide -larpack_linux -I/home/arthur/SIMILAR-vcs/src/ -o SIMILAR-linux
where $FSRC are my *.o files and libarpack_linux.a resides in /home/arthur/SIMILAR-vcs/src (which is specified by the -L switch).
I've been searching up and down for any clues, but have found none, advice would be much appreciated.
regards,
Arthur
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Extensive discussions about ARPACK not being compilable with any standard C++ compiler don't constitute a clue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, you were right - it is an ARPACK issue, not ifort. Unfortunately I did not come across it on my searching, but thank you very much for the heads-up.
cheers,
Arthur
cheers,
Arthur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that there have been previous posts on Intel forums about ARPACK Fortran source compilation. There was an f77 version of ARPACK about 10 years ago, and an f90 version more recently. Either of those (compiled with the same Fortran you intend to use) would seem more promising than a separately compiled version in an extinct C++ dialect.
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