# Tracktion Engine Compile Error with Today's JUCE Develop

**URL:** <https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018>\
**Category:** Tracktion Engine\
**Created:** [December 1, 2023, 4:52pm UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018 "2023-12-01T16:52:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwall](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bwall/32/618_2.png) [@bwall](https://forum.juce.com/u/bwall)\
**Post date:** [December 1, 2023, 4:52pm UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018/1 "2023-12-01T16:52:08Z")

</div>

I’m getting the following compile error with today’s JUCE Develop, and the most recent Tracktion Engine Develop. Reverting to the previous Develop compiles without issue.

```auto
>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\xutility(241,54):
 error C2248: 'tracktion::engine::MidiInputDevice::MidiKeyChangeDispatcher::MidiKeyChangeDispatcher':
 cannot access private member declared in class 'tracktion::engine::MidiInputDevice::MidiKeyChangeDispatcher'

```

I’m on Windows 11 with all updates, and Visual Studio 2022 Version 17.8.2.

I need this for my MidiRecordingClip class. If this has changed. Is there an alternative?

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [December 1, 2023, 5:07pm UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018/2 "2023-12-01T17:07:08Z")

</div>

Looks like `SharedResourcePointer` got refactored, maybe it doesn’t work with classes with private constructors anymore, which would be a shame.

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [December 1, 2023, 6:10pm UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018/3 "2023-12-01T18:10:51Z")

</div>

Doh I knew I would break something!

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [December 1, 2023, 6:11pm UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018/4 "2023-12-01T18:11:34Z")

</div>

I’ll take a look at this but it will probably have to be Monday now sorry.

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [December 1, 2023, 11:42pm UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018/5 "2023-12-01T23:42:51Z")

</div>

I also got an error which I think was due to this change:

```auto
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__memory/allocator_traits.h:298:9: error: no matching function for call to 'construct_at'

```

Rolling back the JUCE commit fixed it

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [December 4, 2023, 2:35pm UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018/6 "2023-12-04T14:35:36Z")

</div>

A change is just making its way through CI now, should be on develop shortly.

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [December 5, 2023, 10:19am UTC](https://forum.juce.com/t/tracktion-engine-compile-error-with-todays-juce-develop/59018/7 "2023-12-05T10:19:28Z")

</div>

The deployment got stuck in CI last night, however all is now good and the fix has been deployed.

> <https://github.com/juce-framework/JUCE/commit/2685604eb37217a032a0355b86e866ecf34be14d>

Thanks for raising.
