# Embedding Julia with Visual C++

**URL:** https://discourse.julialang.org/t/embedding-julia-with-visual-c/10599
**Category:** General Usage
**Tags:** windows
**Created:** [April 28, 2018, 6:58pm UTC](https://discourse.julialang.org/t/embedding-julia-with-visual-c/10599 "2018-04-28T18:58:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mackiem](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mackiem](https://discourse.julialang.org/u/mackiem)
#### Post date: [April 28, 2018, 6:58pm UTC](https://discourse.julialang.org/t/embedding-julia-with-visual-c/10599/1 "2018-04-28T18:58:31Z")

</div>

I’m new to Julia (but have a run a couple of tutorials), and I’m hoping to simply drop a .lib, and a .dll to my path, and with the headers get it working in Visual Studio, i.e. call the functions I’ve created for a linear optimization scenario. My whole use case revolves around getting it to work with Visual C++ (VS 2013). I don’t have any problem compiling my own from source (hopefully there’s a cmake file somewhere). I see that the embedding page in the docs talk does not talk about .dll or .lib files. Can you please guide a Julia noob on how to achieve this task?

---

<div class="post-metadata">

### Author: ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)
#### Post date: [April 28, 2018, 11:24pm UTC](https://discourse.julialang.org/t/embedding-julia-with-visual-c/10599/2 "2018-04-28T23:24:50Z")

</div>

I have just updated my [embedding Julia CMake example](https://github.com/barche/embedding-julia) for Julia 0.6, it seems to generate a working Visual Studio project on Windows.

---

<div class="post-metadata">

### Author: ![lucatrv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucatrv/32/5650_2.png) [@lucatrv](https://discourse.julialang.org/u/lucatrv)
#### Post date: [May 5, 2018, 3:06pm UTC](https://discourse.julialang.org/t/embedding-julia-with-visual-c/10599/3 "2018-05-05T15:06:12Z")

</div>

Have a look at [`PackageCompiler.jl`](https://github.com/JuliaLang/PackageCompiler.jl).
