Visual Studio 2010 build issue


#1

When build juce 4.3.1 demo in vs2010, the following compile error occurs.
I have also installed vs2017.

...
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(47): warning C4512: 'juce::ListenerBase' : assignment operator could not be generated
1>        \juce\modules\juce_core\containers\juce_listenerlist.cpp(34) : see declaration of 'juce::ListenerBase'
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(60): warning C4512: 'juce::Listener1' : assignment operator could not be generated
1>        \juce\modules\juce_core\containers\juce_listenerlist.cpp(49) : see declaration of 'juce::Listener1'
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(73): warning C4512: 'juce::Listener2' : assignment operator could not be generated
1>        \juce\modules\juce_core\containers\juce_listenerlist.cpp(62) : see declaration of 'juce::Listener2'
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(80): error C2143: syntax error : missing ',' before '...'
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(94): error C2143: syntax error : missing ',' before '...'
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(95): error C2061: syntax error : identifier 'Args'
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(111): error C2143: syntax error : missing ',' before '...'
1>\juce\modules\juce_core\containers\juce_listenerlist.cpp(126): error C2143: syntax error : missing ',' before '...'
...

#2

Visual Studio 2010 is no longer supported - you’ll need to use Visual Studio 2013 or later.


#3

But example has vs2010 project.


#4

When build in vs2017 with v141, the following error occurs.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".


#5

I have a juce vs2010 project upgraded to 4.3.1, but build it successfully.


#6

VS2010 projects are not automatically upgradable to later VS versions - you’ll need to resave your project with a more modern exporter.

The develop branch has a VS2017 exporter.