- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I’m relatively new in Intel Fortran compiler. I'm trying to use MKL library. I have followed the instruction to install the compiler and the library. I ran compilervars.sh and mklvars.sh with intel64 option. Y compiled an example code (ifort scasumx.f -mkl -o scasumx) but I had the following error:
Undefined symbols for architecture x86_64:
"_printvectorc_", referenced from:
_MAIN__ in ifortSfQ2wY.o
ld: symbol(s) not found for architecture x86_64
Can somebody help me?
I'm using Intel Fortran Compiler for MacOS on MacOS Mojave with Command Line Tools macOS 10.14 for Xcode 10.2.
Thanks!!!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some of the MKL examples use utility routines such as printvectorc to output vectors and matrices in readable format. Look for a file with a name such as common_func.f (or common_func.c, if you are using C) in the same directory as the example sources or in a nearby directory. You have to compile and link that file along with the rest of the example source files.
The precise details may differ between different versions of MKL. See, for example, https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/297821#comment-1618908 .

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