# \[Embedding\] Windows Binaries

**URL:** <https://discourse.julialang.org/t/embedding-windows-binaries/3352>\
**Category:** General Usage\
**Tags:** embedding\
**Created:** [April 23, 2017, 11:30pm UTC](https://discourse.julialang.org/t/embedding-windows-binaries/3352 "2017-04-23T23:30:57Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![SylvainCorlay](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaincorlay/32/923_2.png) [@SylvainCorlay](https://discourse.julialang.org/u/SylvainCorlay)\
**Post date:** [April 25, 2017, 12:35pm UTC](https://discourse.julialang.org/t/embedding-windows-binaries/3352/21 "2017-04-25T12:35:27Z")

</div>

Trying to build your example cmake yields the same error as mine when not linking with LLVM

```bash
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libjulia.so: undefined reference to `llvm::AttributeSet::hasAttribute(unsigned int, llvm::Attribute::AttrKind) const'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libjulia.so: undefined reference to `llvm::DataLayout::getStructLayout(llvm::StructType*) const'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libjulia.so: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getLoopLatch() const'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libjulia.so: undefined reference to `llvm::parseAssemblyInto(llvm::MemoryBufferRef, llvm::Module&, llvm::SMDiagnostic&, llvm::SlotMapping*)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libjulia.so: undefined reference to `llvm::createJumpThreadingPass(int)'

```

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [April 25, 2017, 12:53pm UTC](https://discourse.julialang.org/t/embedding-windows-binaries/3352/22 "2017-04-25T12:53:28Z")

</div>

Try with the generic binaries, not the PPA. The PPA is not very actively maintained or recommended any more.

---

<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 25, 2017, 1:05pm UTC](https://discourse.julialang.org/t/embedding-windows-binaries/3352/23 "2017-04-25T13:05:30Z")

</div>

I just tried with the generic binaries instead of the fedora package and got the same error, but it is a dynamic linking problem. Adding the following to my environment fixed the build, with Julia running out of the extracted package dir in my downloads dir:

```bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/Downloads/julia-6445c82d00/lib/julia

```

This can probably be fixed for the linux and OS X build using proper rpath cmake settings as well. Either way, this is a dynamic linkage issue, this error does not imply that a .lib for LLVM is needed on Windows (where the LLVM dll gets pulled in automatically by the libjulia dll).

[Previous page](https://discourse.julialang.org/t/embedding-windows-binaries/3352.md?page=1)
