# Calling Intel MKL as an external library on Mac

**URL:** <https://discourse.julialang.org/t/calling-intel-mkl-as-an-external-library-on-mac/33722>\
**Category:** General Usage\
**Tags:** ccall, mkl\
**Created:** [January 24, 2020, 2:44am UTC](https://discourse.julialang.org/t/calling-intel-mkl-as-an-external-library-on-mac/33722 "2020-01-24T02:44:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 24, 2020, 4:05pm UTC](https://discourse.julialang.org/t/calling-intel-mkl-as-an-external-library-on-mac/33722/3 "2020-01-24T16:05:33Z")

</div>

Between my answer and @mfh 's answer, I believe you have a full solution to use the MKL and call ZGELSS:

> [@On solving sets of linear equations in Fortran vs Julia](https://discourse.julialang.org/t/on-solving-sets-of-linear-equations-in-fortran-vs-julia/33729/2):
>
> From what you describe it seems indeed that something wrong is happening on the FORTRAN side. However, to rule out that your making an error in the process of extracting data from FORTRAN to Julia I’d suggest to take a look at two options: Compile your FORTRAN code into a shared object and directly call it from Julia with ccall to get the system matrices, the right-hand side and the solution from FORTRAN and then you can check bit by bit from Julia. Perhaps a bit easier: Use an established fil…

---

_[View the full topic](https://discourse.julialang.org/t/calling-intel-mkl-as-an-external-library-on-mac/33722)._
