- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you use external subprograms without providing interfaces, you are probably operating in "separate compilation" mode unless you tell the compiler to do cross-routine checking. Likewise, the MKL (or any such external library) is not going to be searched for missing routines unless you so order the compiler.
The mere fact of having installing MKL does not cause the MKL libraries to be added by default to a new project. You have to select one of the options in the IDE to make the search happen.
For your toy example, ifort /Qmkl Console1.f90 MyExit.f90 will produce an executable file at the command line. Note the /Qmkl option (on Linux, it is -mkl).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I realize that I need to turn on the MKL compiler switch, but it still doesn't recognize this function. I also added the interface for the myexit, but doesn't help.
It seems mkl_set_exit_handler is one of the recently released with 11.1 update 4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In your project properties pop-up window, set Configuration Properties->Fortran->Libraries->Use Intel Math Kernel Library to one of the options provided (e.g., Sequential). In your present configuration, that line is blank, so MKL libraries are not searched.

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