# Has anyone had success using Julia from Matlab?

**URL:** <https://discourse.julialang.org/t/has-anyone-had-success-using-julia-from-matlab/16661>\
**Category:** General Usage\
**Created:** [October 23, 2018, 1:07am UTC](https://discourse.julialang.org/t/has-anyone-had-success-using-julia-from-matlab/16661 "2018-10-23T01:07:39Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![c42f](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c42f/32/52842_2.png) [@c42f](https://discourse.julialang.org/u/c42f)\
**Post date:** [December 26, 2018, 1:11am UTC](https://discourse.julialang.org/t/has-anyone-had-success-using-julia-from-matlab/16661/22 "2018-12-26T01:11:41Z")

</div>

Oh right. So I don’t quite understand what’s going on here, but it looks like a problem with symbol lookup where the JIT compiled `Sys. __init__ ()` can’t find `jl_cpu_threads` from libjulia. Presumably this could be related to the flags matlab uses when it `dlopen`s your mex file. So to repro outside of matlab you could try a simple executable which `dlopen`s a shared library using `RTLD_LOCAL` and tries to call a function from it. In turn that function would try to call a function from libjulia? I’m not sure that makes sense though because I’m not sure how the linker handles symbol scope for chained library dependencies.

---

_[View the full topic](https://discourse.julialang.org/t/has-anyone-had-success-using-julia-from-matlab/16661)._
