elnormous / ouzel

C++ game engine for Windows, macOS, Linux, iOS, tvOS, Android, and web browsers
The Unlicense
986 stars 113 forks source link

syntax error : "constant" #38

Open Moonstrous opened 6 years ago

Moonstrous commented 6 years ago

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;

elnormous commented 6 years ago

Can you send me the full compile log?

elnormous commented 6 years ago

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

trojanfoe commented 6 years ago

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.