Skip to main content
Up and Coming
September 3, 2015

0.7 VS2012 Etw* syntax errors

hi all,

I just upgraded my code to use SDK 0.7 and it all compiles fine until EtwFrameListener.h is reached, where a number of (successive and related) syntax errors crop up. I am trying to compile on Win 8.1 VS2012 Express. I previously worked with 0.6.0.1 which compiled fine, but that version did not have Etw* files. Any suggestions?

Error	1	error C2143: syntax error : missing ';' before '='	[...]sources\libovrkernel\src\tracing\EtwFrameListener.h	23	1	Oculus_Rift_VR
Error 2 error C2873: 'EtwProcessCallback' : symbol cannot be used in a using-declaration [...]sources\libovrkernel\src\tracing\EtwFrameListener.h 23 1 Oculus_Rift_VR
Error 3 error C2513: 'int' : no variable declared before '=' [...]sources\libovrkernel\src\tracing\EtwFrameListener.h 23 1 Oculus_Rift_VR
Error 4 error C2061: syntax error : identifier 'EtwProcessCallback' [...]sources\libovrkernel\src\tracing\EtwFrameListener.h 65 1 Oculus_Rift_VR
Error 5 error C2065: 'EtwProcessCallback' : undeclared identifier [...]Sources\LibOVRKernel\Src\Tracing\EtwFrameListener.cpp 41 1 Oculus_Rift_VR
Error 6 error C2146: syntax error : missing ')' before identifier 'eventHandler' [...]Sources\LibOVRKernel\Src\Tracing\EtwFrameListener.cpp 41 1 Oculus_Rift_VR
Error 7 error C2761: 'void OVR::Etw::EtwFrameListener::HandleEvents(void)' : member function redeclaration not allowed [...]Sources\LibOVRKernel\Src\Tracing\EtwFrameListener.cpp 41 1 Oculus_Rift_VR
Error 8 error C2059: syntax error : ')' [...]Sources\LibOVRKernel\Src\Tracing\EtwFrameListener.cpp 41 1 Oculus_Rift_VR
Error 9 error C2143: syntax error : missing ';' before '{' [...]Sources\LibOVRKernel\Src\Tracing\EtwFrameListener.cpp 42 1 Oculus_Rift_VR
-- etc

    13 replies

    Inspiring
    September 7, 2015
    Yes, I think someone else mentioned that error in the docs and it's being looked into. Thanks.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    October 22, 2015
    I'm getting the same errors when trying to compile using VS 2015, with XP compatibility.
    ENABLE_TRACE_PARAMETERS_VERSION_2 is undefined.

    If I disable XP compatibility then it's okay.

    Does it mean Oculus Rift is not compatible with Windows XP?

    platform toolset setting in VS C++ project:
    v140 is OK
    v140_xp FAILS
    Up and Coming
    October 22, 2015
    This no longer occurs on 0.8 SDK - all ok now. I can use the XP compatibility platform toolset without compile errors