# Linker cannot find library

**URL:** <https://forum.juce.com/t/linker-cannot-find-library/45713>\
**Category:** MacOSX and iOS\
**Created:** [April 26, 2021, 1:04pm UTC](https://forum.juce.com/t/linker-cannot-find-library/45713 "2021-04-26T13:04:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaphodBB](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/zaphodbb/32/7494_2.png) [@zaphodBB](https://forum.juce.com/u/zaphodBB)\
**Post date:** [April 26, 2021, 1:04pm UTC](https://forum.juce.com/t/linker-cannot-find-library/45713/1 "2021-04-26T13:04:13Z")

</div>

Hi,

Maybe this is a question more related to XCode than to Juce but still I was hoping someone here has experienced this and could help me out with this issue.  
I want to use rubberband as external library, so in the Projucer, I added the lib name under Exporters-\> XCode → External Libraries to Link and under Extra Library Search Paths I entered the path to the library’s folder.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/e/e282af2a845b6bc4509763da83bbc7ac66eee1a2.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/0/03e2a4bbf3fc7112a6d40d3418a8ed39561765f4.png)

Unfortunately, when I build, the linker complains because it cannot find the library file.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/4/40cdd3609134188b5b35608b8bfd72c99b085dca.png)

This seems strange as I’m sure the static library file librubberband.a is at the specified path.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/4/4e77cfe3b5fadd1bb9e70f35b3c9f064cf33e7f9.png)

The Linker uses the paths below:  
-L/Users/Duke/Documents/GitHub/JUCE/Orbish/Builds/MacOSX/build/Debug  
-L/Users/Duke/Documents/GitHub/JUCE/rubberband-1.9.0/lib

Thanks

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [April 26, 2021, 1:22pm UTC](https://forum.juce.com/t/linker-cannot-find-library/45713/2 "2021-04-26T13:22:27Z")

</div>

Does it work if you just pass `rubberband` rather than `librubberband` in the “External Libraries to Link” field?

---

<div class="post-metadata">

**Author:** ![zaphodBB](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/zaphodbb/32/7494_2.png) [@zaphodBB](https://forum.juce.com/u/zaphodBB)\
**Post date:** [April 26, 2021, 1:35pm UTC](https://forum.juce.com/t/linker-cannot-find-library/45713/3 "2021-04-26T13:35:16Z")

</div>

Wow, this solved problem, indeed.  
I was convinced I had tried that already.  
Thanks a lot @reuk  
You just saved me a lot of time 😃
