# Compile error (and suggested fix) for ppc VST plug-in hosts

**URL:** <https://forum.juce.com/t/compile-error-and-suggested-fix-for-ppc-vst-plug-in-hosts/10255>\
**Category:** Audio Plugins\
**Created:** [April 8, 2013, 2:27pm UTC](https://forum.juce.com/t/compile-error-and-suggested-fix-for-ppc-vst-plug-in-hosts/10255 "2013-04-08T14:27:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CPB](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@CPB](https://forum.juce.com/u/CPB)\
**Post date:** [April 8, 2013, 2:27pm UTC](https://forum.juce.com/t/compile-error-and-suggested-fix-for-ppc-vst-plug-in-hosts/10255/1 "2013-04-08T14:27:41Z")

</div>

[This change](https://github.com/julianstorer/JUCE/commit/53edf99901804da519c9434f0cbf6828ab2f4f9c) to juce\_VSTPluginFormat.cpp locally defined a type, typedef ReferenceCountedObjectPtr Ptr, which collides with the Mac Ptr type. The result of which is, VST plug-in hosting won’t build for a ppc target.

[code]Ptr ptr;  
Str255 errorText;

OSErr err = GetMemFragment (\*resHandle, GetHandleSize (resHandle),  
name, kPrivateCFragCopy,  
&fragId, &ptr, errorText);[/code]

So I’d suggest changing the Ptr definition here to:[code]::Ptr ptr;  
Str255 errorText;

OSErr err = GetMemFragment (\*resHandle, GetHandleSize (resHandle),  
name, kPrivateCFragCopy,  
&fragId, &ptr, errorText);[/code]

---

<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:** [April 8, 2013, 2:29pm UTC](https://forum.juce.com/t/compile-error-and-suggested-fix-for-ppc-vst-plug-in-hosts/10255/2 "2013-04-08T14:29:19Z")

</div>

Sure, will change that, thanks!
