Linking with VST SDK


#1

Hi,

I’m trying to link juce to my existing plugin project in xcode.

I get following error;:

/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h:122: error: redefinition of ‘struct juce::MemoryBlock’
/Users/gillesdandelooy/Development/MuHost/mac/…/…/juce/src/juce_core/basics/…/io/files/…/…/containers/juce_MemoryBlock.h:44: error: previous definition of ‘struct juce::MemoryBlock’
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h:126: error: typedef name may not be a nested-name-specifier

Juce’s declaration of MemoryBlock clashes with the carbon version of MemoryBlock.
I tried to define JUCE_NAMESPACE=juce in my targets settings;

But still, get the same error.
What am I doing wrong?

I’m running on MacOS 10.5, projects settings are 10.4

Gilles


#2

You might be including some carbon header files after the juce headers? (Always include juce.h AFTER any system headers)