Compile Error


#1

I just grabbed the latest version of JUCE and tried to build it.  I get the following compile issues.

1>juce_core.cpp

1>c:\code\zyamusic\thirdparty\juce\modules\juce_core\memory/juce_ContainerDeletePolicy.h(48) : error C2248: 'juce::JavascriptEngine::RootObject' : cannot access private struct declared in class 'juce::JavascriptEngine'
1>        c:\code\zyamusic\thirdparty\juce\modules\juce_core\javascript/juce_Javascript.cpp(65) : see declaration of 'juce::JavascriptEngine::RootObject'
1>        c:\code\zyamusic\thirdparty\juce\modules\juce_core\javascript/juce_Javascript.h(49) : see declaration of 'juce::JavascriptEngine'
1>        c:\code\zyamusic\thirdparty\juce\modules\juce_core\memory/juce_ContainerDeletePolicy.h(47) : while compiling class template member function 'void juce::ContainerDeletePolicy<ObjectType>::destroy(ObjectType *)'
1>        with
1>        [
1>            ObjectType=juce::JavascriptEngine::RootObject::Expression
1>        ]
1>        c:\code\zyamusic\thirdparty\juce\modules\juce_core\memory/juce_ScopedPointer.h(100) : see reference to class template instantiation 'juce::ContainerDeletePolicy<ObjectType>' being compiled
1>        with
1>        [
1>            ObjectType=juce::JavascriptEngine::RootObject::Expression
1>        ]
1>        c:\code\zyamusic\thirdparty\juce\modules\juce_core\memory/juce_ScopedPointer.h(100) : while compiling class template member function 'juce::ScopedPointer<ObjectType>::~ScopedPointer(void)'
1>        with
1>        [
1>            ObjectType=juce::JavascriptEngine::RootObject::Expression
1>        ]
1>        c:\code\zyamusic\thirdparty\juce\modules\juce_core\javascript/juce_Javascript.cpp(268) : see reference to class template instantiation 'juce::ScopedPointer<ObjectType>' being compiled
1>        with
1>        [
1>            ObjectType=juce::JavascriptEngine::RootObject::Expression
1>        ]
 

I'm using Visual Studio 2008.  Any ideas as to what is going on?

Thanks

John Lawire

 

Detailed info below

Microsoft Visual Studio 2008
Version 9.0.30729.4108 QFE
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: Professional
Microsoft Visual Basic 2008   91605-270-0808203-60914
Microsoft Visual Basic 2008
Microsoft Visual C# 2008   91605-270-0808203-60914
Microsoft Visual C# 2008
Microsoft Visual C++ 2008   91605-270-0808203-60914
Microsoft Visual C++ 2008
Microsoft Visual Studio 2008 Tools for Office   91605-270-0808203-60914
Microsoft Visual Studio 2008 Tools for Office
Microsoft Visual Web Developer 2008   91605-270-0808203-60914
Microsoft Visual Web Developer 2008
Crystal Reports    AAJ60-G0MSA4K-68000CF
Crystal Reports Basic for Visual Studio 2008

DevPartner for Visual C++   10.5.1208.3
Micro Focus DevPartner for Visual C++ BoundsChecker Suite
Copyright (c) Micro Focus IP Development Limited 2011. All rights reserved.
www.microfocus.com
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB2538241)   KB2538241
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2538241.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB944899)   KB944899
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB945282)   KB945282
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946040)   KB946040
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946308)   KB946308
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946344)   KB946344
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946581)   KB946581
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947171)   KB947171
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947173)   KB947173
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947180)   KB947180
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947540)   KB947540
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947789)   KB947789
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB948127)   KB948127
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB953256)   KB953256
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/953256.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB957912)   KB957912
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/957912.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB960075)   KB960075v2
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/960075.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB971091)   KB971091
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/971091.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB973674)   KB973674
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/973674.
Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB945140)   KB945140
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945140.
Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB947888)   KB947888
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947888.
Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB948484)   KB948484
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948484.
Security Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB2251487)   KB2251487
This security update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2251487.
Security Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB2669970)   KB2669970
This security update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2669970.
Security Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB972222)   KB972222
This security update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/972222.
Security Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB973675)   KB973675
This security update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/973675.
Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB956453)   KB956453
This update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/956453.
Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB967143)   KB967143
This update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/967143.
Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB972221)   KB972221
This update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/972221.
Visual Assist X   
For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2012 Whole Tomato Software, Inc.

 


#2

Any chance that you are mixing different versions of Juce? I updated myself recently and found some similiar errors. Turns out that I had accidentely mixed up different versions. Just a thought.


#3

This is actually a really obscure visual studio compiler bug/quirk. I added a workaround for it yesterday, so just grab the latest version.


#4

The new code works.  Thanks Jules.

John Lawrie