# Juce 5.1.2: juce\_String.h does not compile with JUCE\_DLL\_BUILD=1

**URL:** <https://forum.juce.com/t/juce-5-1-2-juce-string-h-does-not-compile-with-juce-dll-build-1/24287>\
**Category:** Windows\
**Created:** [September 20, 2017, 4:36pm UTC](https://forum.juce.com/t/juce-5-1-2-juce-string-h-does-not-compile-with-juce-dll-build-1/24287 "2017-09-20T16:36:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ans](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ans/32/617_2.png) [@ans](https://forum.juce.com/u/ans)\
**Post date:** [September 20, 2017, 4:36pm UTC](https://forum.juce.com/t/juce-5-1-2-juce-string-h-does-not-compile-with-juce-dll-build-1/24287/1 "2017-09-20T16:36:48Z")

</div>

VS 2015 gives a compiler error C2239 in juce\_String.h when JUCE\_DLL\_BUILD=1 and hence JUCE\_API=\_\_declspec(dllexport)

The error message complains that a \_\_declspec(dllexport) function can’t be deleted. This occurs with the \<\< operator (String& bool).

As a temporary workaround, I just commented this line out, but obviously a better solution is needed.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [September 21, 2017, 10:10am UTC](https://forum.juce.com/t/juce-5-1-2-juce-string-h-does-not-compile-with-juce-dll-build-1/24287/2 "2017-09-21T10:10:59Z")

</div>

Thanks for reporting, this should be fixed on develop with commit [0b6f02a](https://github.com/WeAreROLI/JUCE/commit/0b6f02a29e32b67d78aef4278d922fcc9008b5f3).

---

<div class="post-metadata">

**Author:** ![ans](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ans/32/617_2.png) [@ans](https://forum.juce.com/u/ans)\
**Post date:** [September 22, 2017, 6:50pm UTC](https://forum.juce.com/t/juce-5-1-2-juce-string-h-does-not-compile-with-juce-dll-build-1/24287/3 "2017-09-22T18:50:57Z")

</div>

Great. Thanks for the fix.
