- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am attempting to port a fortran code from Windows to a Linux Itanium2 processor-based system, and am receiving "undefined reference to" errors during linking for all the functions I call from the Intel MKL (the Linux version is installed, btw). I previously was using Lahey Fortran under Windows, but must use Intel Fortran on the linux system, and they treat mixed-language function passing a little differently.
To get started I am trying to get the MKL example source code "ddotx.f" to compile, using the following:
ifort -L/opt/intel-mkl/7.2.1.003/mkl721/lib/64 -lmkl_solver -lmkl_lapack -lmkl_ipf -lguide -lpthread ddotx.f
The error messages are as follows:
/tmp/ifortRKlaVH.o(.text+0x642): In function `MAIN__':
: undefined reference to `printvectord_'
/tmp/ifortRKlaVH.o(.text+0x672): In function `MAIN__':
: undefined reference to `printvectord_'
/tmp/ifortRKlaVH.o(.text+0x6a2): In function `MAIN__':
: undefined reference to `ddot_'
The snippet of code where the "ddot" function is mentioned is:
* External Subroutines
external DDOT, PrintVectorD
double precision DDOT
I have tried several varieties of upper and lower case in relation to the DDOT function, and have attempted to use !DEC$ ALIAS commands and trailing underscores to rectify this issue, but I have had no luck. If anyone knows the solution to this problem it would be of great assistance.
Regards,
Greg.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page