ouzel icon indicating copy to clipboard operation
ouzel copied to clipboard

syntax error : "constant"

Open Moonstrous opened this issue 7 years ago • 3 comments

When building in Visual Studio 2017 (Windows) , i get Error Code : C2059 -- Syntax Error : "Constant" . in line : 109 , in file : audiodevicexa2.cpp const UINT XAUDIO2_DEBUG_ENGINE = 0x0001;

Moonstrous avatar Jun 10 '18 23:06 Moonstrous

Can you send me the full compile log?

elnormous avatar Jun 11 '18 08:06 elnormous

AppVeyor built it successfully with Visual Studio 2017: https://ci.appveyor.com/project/elnormous/ouzel/build/job/qwok53hg6a49tn5h

elnormous avatar Jun 11 '18 09:06 elnormous

I got the same error. It looks like XAUDIO2_DEBUG_ENGINE is already defined somewhere else. Renaming the const to something like XAUDIO2_DEBUG_ENGINE_X solved the issue.

trojanfoe avatar Sep 13 '18 06:09 trojanfoe