Sample code compile problems with visual studio 2012

Hi

I am getting compiler errors with visual studio 2012. I have tried changing platform toolset to v100, v110 but I am getting same. Please help

1>------ Build started: Project: PVRGles, Configuration: Debug Win32 ------
1> TextureGles.cpp
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(124): error C2143: syntax error : missing ‘,’ before '…'
1> C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(143) : see reference to class template instantiation ‘pvr::RefCountEntryIntrusive<MyClass_>’ being compiled
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(125): error C2061: syntax error : identifier 'Args’
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(269): error C2143: syntax error : missing ‘,’ before '…'
1> C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(278) : see reference to class template instantiation ‘pvr::RefcountEntryHolder<MyClass_>’ being compiled
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(270): error C2061: syntax error : identifier 'Args’
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(639): error C2143: syntax error : missing ‘,’ before '…'
1> C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(681) : see reference to class template instantiation ‘pvr::RefCountedResource<MyClass_>’ being compiled
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(640): error C2065: ‘Params’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(640): error C2988: unrecognizable template declaration/definition
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(640): error C2059: syntax error : '…'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(663): error C2065: ‘OriginalType’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(663): error C2923: ‘pvr::RefCountedResource’ : ‘OriginalType’ is not a valid template type argument for parameter 'MyClass_'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(664): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(671): error C3254: ‘pvr::RefCountedResource<MyClass_>’ : class contains explicit override ‘reset’ but does not derive from an interface that contains the function declaration
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(671): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(671): warning C4183: ‘reset’: missing return type; assumed to be a member function returning 'int’
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(673): error C2143: syntax error : missing ‘;’ before '->'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(673): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(673): error C2238: unexpected token(s) preceding ';'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(674): error C2061: syntax error : identifier 'refCountEntry’
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(674): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(674): warning C4183: ‘assertion’: missing return type; assumed to be a member function returning 'int’
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(678): error C2143: syntax error : missing ‘;’ before 'template’
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(902): error C2143: syntax error : missing ‘,’ before '…'
1> C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(915) : see reference to class template instantiation ‘pvr::EmbeddedRefCount<MyClass_>’ being compiled
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(903): error C2065: ‘Params’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(903): error C2988: unrecognizable template declaration/definition
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(903): error C2059: syntax error : '…'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/RefCounted.h(912): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(98): error C2143: syntax error : missing ‘,’ before '…'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(104): error C2143: syntax error : missing ‘,’ before '…'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(104): error C2065: ‘dummy’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(105): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(106): error C2065: ‘dummy’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(106): error C2143: syntax error : missing ‘,’ before '…'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(106): error C2039: ‘value’ : is not a member of ‘global namespace'' 1&gt;C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(107): error C2143: syntax error : missing ';' before '}' 1&gt;C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(110): error C2143: syntax error : missing ';' before '{' 1&gt;C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(111): error C2065: 'chars' : undeclared identifier 1&gt;C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(111): error C2143: syntax error : missing ',' before '...' 1&gt;C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(111): error C2039: 'value' : is not a member of 'global namespace’'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(112): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Base/Hash_.h(116): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(10): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(11): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(16): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(37): error C2065: ‘unicodeString’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(37): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::byte
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(37): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(43): error C2065: ‘unicodeString’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(43): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::utf16
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(43): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(49): error C2065: ‘utf32StringOut’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(49): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::utf32
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(49): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(55): error C2065: ‘utf16StringOut’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(55): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::utf16
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(55): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(61): error C2065: ‘utf32StringOut’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(61): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::utf32
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(61): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(67): error C2065: ‘utf8StringOut’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(67): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::byte
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(67): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(73): error C2065: ‘utf32StringOut’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(73): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::utf32
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(73): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(79): error C2065: ‘utf8StringOut’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(79): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::byte
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(79): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(85): error C2065: ‘utf16StringOut’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(85): error C2275: ‘std::vector<_Ty>’ : illegal use of this type as an expression
1> with
1> [
1> _Ty=pvr::utf16
1> ]
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(85): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(117): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(118): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/Strings/UnicodeConverter.h(119): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(11): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(14): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(19): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(24): error C2065: ‘argumentList’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(38): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(40): error C2065: ‘newStringSize’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(40): error C2065: ‘format’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(40): error C2065: ‘argumentList’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(40): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(45): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(47): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(48): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(51): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(53): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(56): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(62): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(66): error C2065: ‘argumentList’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(80): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(83): error C2065: ‘newStringSize’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(83): error C2065: ‘format’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(84): error C2065: ‘argumentList’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(84): error C2143: syntax error : missing ‘,’ before ')'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(88): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(90): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(91): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(94): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(96): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(99): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(105): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(109): error C2653: ‘strings’ : is not a class or namespace name
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(109): error C2065: ‘argumentList’ : undeclared identifier
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(113): error C2143: syntax error : missing ‘;’ before '}'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(119): error C2143: syntax error : missing ‘;’ before '{'
1>C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Framework\PVRCore/StringFunctions.h(119): fatal error C1003: error count exceeds 100; stopping compilation

Hi,

We use Visual Studio 2013 (VC++120) as the target compiler on Windows platforms, could you try building the SDK with the newer version of Visual Studio and see if the problem still exists.

Thanks,
Shaun

I will try it, but I was able to succefully compile in Visual Studio 2017. However running the application crashes saying memory access exception. I assumed the build tools may not have matched and tried lower versions.

Do you know of any such problems with VS2017 ?

Hi,

VS2013 is our reference tool chain for Windows, VS2015 and VS2017 should work ok in theory, I am not aware of any issues with VS2017 at the moment, may I ask which SDK example you trying to build?

Thanks,
Shaun

I tried bumpmap and particles example with VS 2017

Actually, it will help what is the platform toolset for VS2013 (because there are experimental flavours as well) and where can I download it from ? That will help me solve the issue.

Hi,

You can get Visual Studio 2013 from Microsoft’s website here: https://www.visualstudio.com/vs/older-downloads/.
The platform tool set is VC++ 120.

Thanks,
Shaun

Hi Shaun

I installed VS2013 with V120 toolset.

I am getting following crash when launching the samples. Please help !! Not sure whats happening !

‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Examples\Intermediate\PostProcessing\OGLES\Build\WindowsVC2010\Win32\Debug\OGLESPostProcessing.exe’. Symbols loaded.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\ntdll.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\kernel32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\KernelBase.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Program Files (x86)\Norton Internet Security\NortonData\22.5.0.124\Definitions\BASHDefs\20170821.001\UMEngx86.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\user32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\gdi32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\lpk.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\usp10.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\msvcrt.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\advapi32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\sechost.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\rpcrt4.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\sspicli.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\cryptbase.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\dbghelp.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\api-ms-win-core-synch-l1-2-0.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\imm32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\msctf.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libGLESv2.dll’. Module was built without symbols.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\opengl32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\glu32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\ddraw.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\dciman32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\setupapi.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\cfgmgr32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\oleaut32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\ole32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\devobj.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\dwmapi.dll’. Cannot find or open the PDB file.
DEBUG: Host library ‘libGLESv2.dll’ loaded
’OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libEGL.dll’. Module was built without symbols.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\shlwapi.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\shell32.dll’. Cannot find or open the PDB file.
DEBUG: Host library ‘libEGL.dll’ loaded
The thread 0x1884 has exited with code 0 (0x0).
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\uxtheme.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\nvoglv32.dll’. Cannot find or open the PDB file.
The thread 0x1a24 has exited with code 0 (0x0).
The thread 0x19f0 has exited with code 0 (0x0).
The thread 0x1b54 has exited with code 0 (0x0).
INFORMATION: PVRApi static linking detected. Api mode ‘OpenGL ES’. Application is built and running in Static linking mode.
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\ole32.dll’. Cannot find or open the PDB file.
‘OGLESPostProcessing.exe’ (Win32): Unloaded ‘C:\Windows\SysWOW64\ole32.dll’
DEBUG: EglPlatformContext.cpp: isGlesVersionSupported: Setting EGL_OPENGL_ES3_BIT_KHR
DEBUG: EglPlatformContext.cpp: isGlesVersionSupported: number of configurations found for ES version [OpenGL ES 3.1] was [168]
INFORMATION: Trying to create context for all configs.
INFORMATION: EGL context creation: EGL_KHR_create_context supported
’OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libGLESv2.dll’. Module was built without symbols.
‘OGLESPostProcessing.exe’ (Win32): Unloaded 'C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libGLESv2.dll’
INFORMATION: SUCCESS creating context! Reporting success. (Used config #0) .
INFORMATION: Maximum API level detected: OpenGL ES 3.1
INFORMATION: Unspecified target API – Setting to max API level : OpenGL ES 3.1
INFORMATION: EGL context creation: EGL_KHR_create_context supported…
INFORMATION: Trying to get OpenGL ES version : 3.1
INFORMATION: EGL context creation: EGL_IMG_context_priority supported! Setting context HIGH priority (default)…
DEBUG: Attempting to create context with:

DEBUG: Debugbit: true
DEBUG: RedBits: 8
DEBUG: GreenBits: 8
DEBUG: BlueBits: 8
DEBUG: AlphaBits: 8
DEBUG: DepthBits: 32
DEBUG: StencilBits: 0
DEBUG: EGL context creation: EGL_OPENGL_ES3_BIT
INFORMATION: EGL context creation: Number of EGL Configs found: 1
INFORMATION: Creating EGL context…
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libGLESv2.dll’. Module was built without symbols.
‘OGLESPostProcessing.exe’ (Win32): Unloaded 'C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libGLESv2.dll’
DEBUG: EGL context created. Will now check if any attributes were being debugged, and try to roll back unnecessary changes.
DEBUG: EGL context successfully created! Updating Config Attributes to reflect actual context parameters…
INFORMATION: EGL Initialized Successfully
INFORMATION: === Final EGL Configuration ===
INFORMATION: RedBits: 8
INFORMATION: GreenBits: 8
INFORMATION: BlueBits: 8
INFORMATION: AlphaBits: 8
INFORMATION: DepthBits: 24
INFORMATION: StencilBits: 0
INFORMATION: aaSamples: 0
INFORMATION: FullScreen: false
INFORMATION: ===============================
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libGLESv2.dll’. Module was built without symbols.
‘OGLESPostProcessing.exe’ (Win32): Unloaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libGLESv2.dll’
‘OGLESPostProcessing.exe’ (Win32): Loaded ‘C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libEGL.dll’. Module was built without symbols.
‘OGLESPostProcessing.exe’ (Win32): Unloaded 'C:\Imagination\PowerVR_Graphics\PowerVR_SDK\SDK_2017_R1\Builds\Windows\x86_32\Lib\libEGL.dll’
First-chance exception at 0xBAADF00D in OGLESPostProcessing.exe: 0xC0000005: Access violation executing location 0xBAADF00D.
Unhandled exception at 0xBAADF00D in OGLESPostProcessing.exe: 0xC0000005: Access violation executing location 0xBAADF00D.

this is the same issue I am having

https://www.imgcommunity.local/forums/topic/powervr-sdk_2016_r1-2/

for me helloAPI sample is also showing same crash log !!

Is this OS specific ? I was able to run on a windows 10 PC but its not working on my windows 7 laptop. :frowning:

Hi,

This could be a compatibility issue with the graphics device in your laptop, do you know what GPU your laptop has?

Also you could try building the example in debug mode and then running it inside Visual Studio to get a stack trace of the application when it crashes, this might give us some more clues as to what is going on.

Edit: Did you do a clean between building the project with VS2013 and VS2017? If you have intermediate object files built with different tool chains it will probably cause issues.

Thanks,
Shaun

thanks for the awesome information.

thanks, my issue has been fixed.