# Projucer VST3 on Windows: flock.cpp and undeclared identifier

**URL:** <https://forum.juce.com/t/projucer-vst3-on-windows-flock-cpp-and-undeclared-identifier/25700>\
**Category:** General JUCE discussion\
**Created:** [December 22, 2017, 2:25am UTC](https://forum.juce.com/t/projucer-vst3-on-windows-flock-cpp-and-undeclared-identifier/25700 "2017-12-22T02:25:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sx107](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sx107](https://forum.juce.com/u/sx107)\
**Post date:** [December 22, 2017, 2:25am UTC](https://forum.juce.com/t/projucer-vst3-on-windows-flock-cpp-and-undeclared-identifier/25700/1 "2017-12-22T02:25:26Z")

</div>

Hello. I was trying to compile the “audio plugin host” example using MVS 2017. The project requires VST3, so I downloaded and unpacked it and given the projucer the right path to it.  
When compiling, I first got errors that “base/source/flock.cpp” was not found. I opened the VST3 SDK folder and saw that flock.cpp is actually in the base/source/thread/flock.cpp, so I just copied it and the related .h file to the base/source/folder. A stupid solution, but it worked. Kinda.

Now I get errors in juce\_VST3Common.h and juce\_VST3\_Wrapper.cpp:

1. C2065 kBFormat: undeclared identifier in juce\_VST3Common.h and
2. C2593 operator == is ambigious
3. C2440 conversion’ : cannot convert from ‘Steinberg::FIDString’ to ‘Steinberg::FUID’ , both in juce\_VST3\_Wrapper.h.

How can these problems be solved? Maybe the VST3 SDK version i’ve downloaded (3.6.8) is wrong? VST2 and standalone applications seem to be just fine, but the audio plugin host example cannot build without VST3, as I understood.

---

<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:** [December 22, 2017, 8:53am UTC](https://forum.juce.com/t/projucer-vst3-on-windows-flock-cpp-and-undeclared-identifier/25700/2 "2017-12-22T08:53:20Z")

</div>

> [@No flock.cpp in VST SDK?](https://forum.juce.com/t/no-flock-cpp-in-vst-sdk/25069):
>
> This issue seems to pop up a lot but I’m trying to build the audio plugin host example project and getting the error that the file “base/source/flock.cpp” is cannot be found. All of the other files in the base/source/ directory are fine (because they actually exist) but there’s no flock.cpp in this folder… If anyone can suggest a solution for me I’d be massively grateful! edit:

TL;DR: Get the latest VST SDK and the latest JUCE (from the develop branch)

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [December 22, 2017, 8:55am UTC](https://forum.juce.com/t/projucer-vst3-on-windows-flock-cpp-and-undeclared-identifier/25700/3 "2017-12-22T08:55:06Z")

</div>

The master branch (from Github) will also work with the latest VST SDK.

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [December 22, 2017, 8:56am UTC](https://forum.juce.com/t/projucer-vst3-on-windows-flock-cpp-and-undeclared-identifier/25700/4 "2017-12-22T08:56:20Z")

</div>

> [@jules](#):
>
> TL;DR: Get the latest VST SDK and the latest JUCE (from the develop branch)

Or get the previous VST SDK ([http://www.steinberg.net/sdk\_downloads/vstsdk367\_03\_03\_2017\_build\_352.zip](http://www.steinberg.net/sdk_downloads/vstsdk367_03_03_2017_build_352.zip)) and don’t change anything to JUCE.
