# Flock.cpp missed (wrong location) - Plugin host

**URL:** <https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785>\
**Category:** General JUCE discussion\
**Created:** [January 2, 2018, 10:51am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785 "2018-01-02T10:51:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [January 2, 2018, 10:51am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785/1 "2018-01-02T10:51:55Z")

</div>

Hello,  
I have problem with Plugin Host example app. As I wrote in subject, while I compile the program in xCode, there is error, that flock.cpp can’t be found.  
I’ve just read topic in that link:

> [@Missing Dependency in Audio Plugin Host Example Project](https://forum.juce.com/t/missing-dependency-in-audio-plugin-host-example-project/21469):
>
> Hi, I just downloaded the most recent version of JUCE for Mac from the downloads page. I tried to build the Audio Plugin Host example project, but build fails with an error: /Applications/JUCE/modules/juce\_audio\_processors/format\_types/juce\_VST3Headers.h:93:11: ‘base/source/flock.cpp’ file not found Apparently there is a missing dependency. This is without my doing anything to the project. Any idea what I can do to fix this?

There is advice to install latest version of SDK VST, but I’ve just download it from [3rd-Party Developers Support & SDKs | Steinberg](https://www.steinberg.net/en/company/developers.html)  
and it doesn’t help.  
So I tried to move flock.cpp file to location where xCode expects it but then there are much more errors. I also tried to change #include path to the location where flock.cpp comes originally from steinberg. But it also doesn’t help but gives much more errors.  
I can’t find anywhere explanation how to repair it. Could anyone help me?  
For any help thanks in advance.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 2, 2018, 10:53am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785/2 "2018-01-02T10:53:16Z")

</div>

As we said on multiple other threads:

- get the latest VST version 3.8
- get the latest JUCE version from the develop or master branch

Don’t mess around trying to move files or fix things yourself!

---

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [January 2, 2018, 11:03am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785/3 "2018-01-02T11:03:16Z")

</div>

Hello,  
thanks for reply, but where to find latest version of VST 3.8  
On the official steinberg website there is only VST 3.6.8 - here: [https://www.steinberg.net/en/company/developers.html](https://www.steinberg.net/en/company/developers.html)

And I have also installed JUCE 5.2.0, isn’t it the latest version?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 2, 2018, 11:16am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785/4 "2018-01-02T11:16:32Z")

</div>

Sorry - that was a typo, I meant 3.6.8

And no, whenever we say the _latest_ version of juce, we mean the develop or master branches on github!

---

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [January 2, 2018, 11:21am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785/5 "2018-01-02T11:21:38Z")

</div>

OK, thanks,  
but then I have one more stupid question, sorry for that but I am quite new on github and in programming at all. So I would like to ask: I found that [https://github.com/WeAreROLI/JUCE](https://github.com/WeAreROLI/JUCE)

But I am not sure shoul I download all files from that link, or it’s enough if I download only Plugin Host files from here [https://github.com/WeAreROLI/JUCE/tree/master/examples/audio%20plugin%20host](https://github.com/WeAreROLI/JUCE/tree/master/examples/audio%20plugin%20host)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 2, 2018, 11:25am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785/6 "2018-01-02T11:25:22Z")

</div>

You can’t really be a developer without understanding GIT these days, so that’s worth spending some time learning!

And yes, you should always pull entire repos as a whole (this applies to everything, not just juce!) If you start mixing up random versions of files from them you’ll end up in a mess.

---

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [January 2, 2018, 11:29am UTC](https://forum.juce.com/t/flock-cpp-missed-wrong-location-plugin-host/25785/7 "2018-01-02T11:29:40Z")

</div>

Hey,  
great thanks for your support, now works perfectly.  
Thanks and happy new year 🙂
