Getting Started with Juce / Bugs

Hi, 

 

I started this topic to collect compilation errors (with fixes) in the "Getting Started with Juce" book.

 

Chapter02_04:

cannot declare field 'MainContentComponent::altLookAndFeel' to be of abstract type 'MainContentComponent::AltLookAndFeel'

Change in mainComponent.h:

class AltLookAndFeel : public LookAndFeel

To:

class AltLookAndFeel : public LookAndFeel_V2

http://www.juce.com/forum/topic/lookandfeel-changes

Chapter05_02:

'juce::ScopedPointer<ObjectType>::ScopedPointer(const juce::ScopedPointer<ObjectType>&) [with ObjectType = juce::XmlElement]' is private

Change in EntryForm.cpp:

ScopedPointer<XmlElement> xml = personData.createXml();

ScopedPointer<XmlElement> xml = xmlDoc.getDocumentElement();

To:

ScopedPointer<XmlElement> xml (personData.createXml());

ScopedPointer<XmlElement> xml (xmlDoc.getDocumentElement());

Depends to compilers.

Well documented in Juce_ScopedPointer.h ( https://github.com/julianstorer/JUCE/blob/master/modules/juce_core/memory/juce_ScopedPointer.h#L218 ).